C# 클래스 SemanticLogging.EventHub.EventHubAmpqLog

Factories and helpers for using the EventHubAmqpSink.
파일 보기 프로젝트 열기: DeHeerSoftware/SemanticLogging.EventHub

공개 메소드들

메소드 설명
CreateListener ( string eventHubConnectionString, string eventHubName, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan listenerDisposeTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize, string partitionKey = null ) : System.Diagnostics.Tracing.EventListener

Creates an event listener that logs using a EventHubAmqpSink.

LogToEventHubUsingAmqp ( this eventStream, string eventHubConnectionString, string eventHubName, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan onCompletedTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize, string partitionKey = null ) : SinkSubscription

Subscribes to an IObservable{EventEntry} using a EventHubAmqpSink.

메소드 상세

CreateListener() 공개 정적인 메소드

Creates an event listener that logs using a EventHubAmqpSink.
public static CreateListener ( string eventHubConnectionString, string eventHubName, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan listenerDisposeTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize, string partitionKey = null ) : System.Diagnostics.Tracing.EventListener
eventHubConnectionString string The connection string for the eventhub.
eventHubName string The name of the eventhub.
bufferingInterval System.TimeSpan The buffering interval between each batch publishing.
bufferingCount int The number of entries that will trigger a batch publishing.
listenerDisposeTimeout System.TimeSpan Defines a timeout interval for the flush operation when the listener is disposed.
maxBufferSize int The maximum number of entries that can be buffered while it's sending to Azure EventHub before the sink starts dropping entries. /// This means that if the timeout period elapses, some event entries will be dropped and not sent to the store. 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.
partitionKey string PartitionKey is optional. If no partition key is supplied the log messages are sent to eventhub /// and distributed to various partitions in a round robin manner.
리턴 System.Diagnostics.Tracing.EventListener

LogToEventHubUsingAmqp() 공개 정적인 메소드

Subscribes to an IObservable{EventEntry} using a EventHubAmqpSink.
public static LogToEventHubUsingAmqp ( this eventStream, string eventHubConnectionString, string eventHubName, System.TimeSpan bufferingInterval = null, int bufferingCount = Buffering.DefaultBufferingCount, System.TimeSpan onCompletedTimeout = null, int maxBufferSize = Buffering.DefaultMaxBufferSize, string partitionKey = null ) : SinkSubscription
eventStream this The event stream. Typically this is an instance of .
eventHubConnectionString string The connection string for the eventhub.
eventHubName string The name of the eventhub.
bufferingInterval System.TimeSpan The buffering interval between each batch publishing. Default value is .
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.
maxBufferSize int The maximum number of entries that can be buffered while it's sending to Azure EventHub before the sink starts dropping entries. /// 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.
partitionKey string PartitionKey is optional. If no partition key is supplied the log messages are sent to eventhub /// and distributed to various partitions in a round robin manner.
리턴 SinkSubscription