C# 클래스 SemanticLogging.EventHub.EventHubHttpLog

파일 보기 프로젝트 열기: DeHeerSoftware/SemanticLogging.EventHub

공개 메소드들

메소드 설명
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