Метод | Описание | |
---|---|---|
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 |
Subscribes to an IObservable{EventEntry} 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 |
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 |
public static LogToEventHubUsingAmqp ( this |
||
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 |
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 |
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 |