C# Класс SemanticLogging.EventHub.EventHubHttpLog

Показать файл Открыть проект

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

Метод Описание
CreateListener ( string eventHubNamespace, string eventHubName, string publisherId, string sasToken, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan onCompletedTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : System.Diagnostics.Tracing.EventListener

Creates an event listener that logs using an EventHubHttpSink.

LogToEventHubUsingHttp ( this eventStream, string eventHubNamespace, string eventHubName, string publisherId, string sasToken, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan onCompletedTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : SinkSubscription

Subscribes to an IObservable{EventEntry} using an EventHubHttpSink.

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

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

Creates an event listener that logs using an EventHubHttpSink.
public static CreateListener ( string eventHubNamespace, string eventHubName, string publisherId, string sasToken, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan onCompletedTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : System.Diagnostics.Tracing.EventListener
eventHubNamespace string The namespace of the eventhub.
eventHubName string The name of the eventhub.
publisherId string The id of the event publisher.
sasToken string The shared access signature token.
bufferingInterval System.TimeSpan The buffering interval between each batch publishing.
bufferingCount int The number of entries that will trigger a batch publishing.
onCompletedTimeout System.TimeSpan Defines a timeout interval for when flushing the entries after an call is received and before disposing the sink. /// This means that if the timeout period elapses, some event entries will be dropped and not sent to the store. Normally, calling on /// the will block until all the entries are flushed or the interval elapses. /// If is specified, then the call will block indefinitely until the flush operation finishes.
maxBufferSize int The maximum number of entries that can be buffered while it's sending to the store before the sink starts dropping entries.
Результат System.Diagnostics.Tracing.EventListener

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

Subscribes to an IObservable{EventEntry} using an EventHubHttpSink.
public static LogToEventHubUsingHttp ( this eventStream, string eventHubNamespace, string eventHubName, string publisherId, string sasToken, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan onCompletedTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : SinkSubscription
eventStream this The event stream. Typically this is an instance of .
eventHubNamespace string The namespace of the eventhub.
eventHubName string The name of the eventhub.
publisherId string The id of the event publisher.
sasToken string The shared access signature token.
bufferingInterval System.TimeSpan The buffering interval between each batch publishing.
bufferingCount int The number of entries that will trigger a batch publishing.
onCompletedTimeout System.TimeSpan Defines a timeout interval for when flushing the entries after an call is received and before disposing the sink. /// This means that if the timeout period elapses, some event entries will be dropped and not sent to the store. Normally, calling on /// the will block until all the entries are flushed or the interval elapses. /// If is specified, then the call will block indefinitely until the flush operation finishes.
maxBufferSize int The maximum number of entries that can be buffered while it's sending to the store before the sink starts dropping entries.
Результат SinkSubscription