C# Class log4net.ElasticSearch.Repository

Inheritance: IRepository
Afficher le fichier Open project: jptoto/log4net.ElasticSearch Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IEnumerable logEvents, int bufferSize ) : void

Post the event(s) to the Elasticsearch API. If the bufferSize in the connection string is set to more than 1, assume we use the _bulk API for better speed and efficiency

Create ( string connectionString ) : IRepository
Create ( string connectionString, IHttpClient httpClient ) : IRepository

Private Methods

Méthode Description
Repository ( log4net.ElasticSearch.Models.Uri uri, IHttpClient httpClient ) : System.Collections.Generic

Method Details

Add() public méthode

Post the event(s) to the Elasticsearch API. If the bufferSize in the connection string is set to more than 1, assume we use the _bulk API for better speed and efficiency
public Add ( IEnumerable logEvents, int bufferSize ) : void
logEvents IEnumerable A collection of logEvents
bufferSize int The BufferSize as set in the connection string details
Résultat void

Create() public static méthode

public static Create ( string connectionString ) : IRepository
connectionString string
Résultat IRepository

Create() public static méthode

public static Create ( string connectionString, IHttpClient httpClient ) : IRepository
connectionString string
httpClient IHttpClient
Résultat IRepository