C# Class log4net.ElasticSearch.Infrastructure.HttpClient

Inheritance: IHttpClient
Mostrar archivo Open project: jptoto/log4net.ElasticSearch

Public Methods

Method Description
Post ( Uri uri, log4net.ElasticSearch.Models.logEvent item ) : void
PostBulk ( Uri uri, IEnumerable items ) : void

Post the events to the Elasticsearch _bulk API for faster inserts

RequestFor ( Uri uri ) : HttpWebRequest

Private Methods

Method Description
GetRequestStream ( WebRequest httpWebRequest ) : StreamWriter

Method Details

Post() public method

public Post ( Uri uri, log4net.ElasticSearch.Models.logEvent item ) : void
uri System.Uri
item log4net.ElasticSearch.Models.logEvent
return void

PostBulk() public method

Post the events to the Elasticsearch _bulk API for faster inserts
public PostBulk ( Uri uri, IEnumerable items ) : void
uri System.Uri Fully formed URI to the ES endpoint
items IEnumerable List of logEvents
return void

RequestFor() public static method

public static RequestFor ( Uri uri ) : HttpWebRequest
uri System.Uri
return System.Net.HttpWebRequest