Class EventCounterListener
Inheritance
System.Object
EventCounterListener
Namespace: Steeltoe.Management.Endpoint.Metrics.Observer
Assembly: Steeltoe.Management.EndpointBase.dll
Syntax
public class EventCounterListener : EventListener
Constructors
| Edit this page View SourceEventCounterListener(IMetricsObserverOptions, ILogger<EventCounterListener>)
Declaration
public EventCounterListener(IMetricsObserverOptions options, ILogger<EventCounterListener> logger = null)
Parameters
Type | Name | Description |
---|---|---|
IMetricsObserverOptions | options | |
ILogger<EventCounterListener> | logger |
Methods
| Edit this page View SourceOnEventSourceCreated(EventSource)
Declaration
protected override void OnEventSourceCreated(EventSource eventSource)
Parameters
Type | Name | Description |
---|---|---|
EventSource | eventSource |
OnEventWritten(EventWrittenEventArgs)
Processes a new EventSource event.
Declaration
protected override void OnEventWritten(EventWrittenEventArgs eventData)
Parameters
Type | Name | Description |
---|---|---|
EventWrittenEventArgs | eventData | Event to process. |