C# Class Microsoft.ApplicationInsights.DependencyCollector.Implementation.FrameworkHttpEventListener

Provides methods for listening to events from FrameworkEventSource for HTTP.
Inheritance: System.Diagnostics.Tracing.EventListener
显示文件 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Protected Methods

Method Description
OnEventSourceCreated ( System.Diagnostics.Tracing.EventSource eventSource ) : void

Enables HTTP event source when EventSource is created. Called for all existing event sources when the event listener is created and when a new event source is attached to the listener.

OnEventWritten ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void

Called whenever an event has been written by an event source for which the event listener has enabled events.

Private Methods

Method Description
FrameworkHttpEventListener ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : System
OnBeginGetRequestStream ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void

Called when a postfix of a (HttpWebRequest|FileWebRequest|FtpWebRequest).BeginGetRequestStream method has been invoked.

OnBeginGetResponse ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void

Called when a postfix of a (HttpWebRequest|FileWebRequest|FtpWebRequest).BeginGetResponse method has been invoked.

OnEndGetResponse ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void

Called when a postfix of a (HttpWebRequest|FileWebRequest|FtpWebRequest).EndGetResponse method has been invoked.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

OnEventSourceCreated() protected method

Enables HTTP event source when EventSource is created. Called for all existing event sources when the event listener is created and when a new event source is attached to the listener.
protected OnEventSourceCreated ( System.Diagnostics.Tracing.EventSource eventSource ) : void
eventSource System.Diagnostics.Tracing.EventSource
return void

OnEventWritten() protected method

Called whenever an event has been written by an event source for which the event listener has enabled events.
protected OnEventWritten ( System.Diagnostics.Tracing.EventWrittenEventArgs eventData ) : void
eventData System.Diagnostics.Tracing.EventWrittenEventArgs The event arguments that describe the event.
return void