C# Класс log4net.ElasticSearch.Repository

Наследование: IRepository
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Repository ( log4net.ElasticSearch.Models.Uri uri, IHttpClient httpClient ) : System.Collections.Generic

Описание методов

Add() публичный Метод

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
Результат void

Create() публичный статический Метод

public static Create ( string connectionString ) : IRepository
connectionString string
Результат IRepository

Create() публичный статический Метод

public static Create ( string connectionString, IHttpClient httpClient ) : IRepository
connectionString string
httpClient IHttpClient
Результат IRepository