C# Class log4net.ElasticSearch.Infrastructure.HttpClient

Inheritance: IHttpClient
Afficher le fichier Open project: jptoto/log4net.ElasticSearch

Méthodes publiques

Méthode 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

Méthode Description
GetRequestStream ( WebRequest httpWebRequest ) : StreamWriter

Method Details

Post() public méthode

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

PostBulk() public méthode

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
Résultat void

RequestFor() public static méthode

public static RequestFor ( Uri uri ) : HttpWebRequest
uri System.Uri
Résultat System.Net.HttpWebRequest