C# Class Microsoft.Practices.EnterpriseLibrary.SemanticLogging.OsVersionContextInitializer

An IContextInitializer implementation that appends the Environment.OSVersion to an Application Insights TelemetryContext
Inheritance: IContextInitializer
Show file Open project: fidmor89/SLAB_AppInsights Class Usage Examples

Public Methods

Method Description
Initialize ( Microsoft.ApplicationInsights.DataContracts.TelemetryContext context ) : void

Initializes the given T:Microsoft.ApplicationInsights.DataContracts.TelemetryContext.

OsVersionContextInitializer ( string osVersion = null ) : System

Initializes a new instance of the T:System.Object class.

Method Details

Initialize() public method

Initializes the given T:Microsoft.ApplicationInsights.DataContracts.TelemetryContext.
public Initialize ( Microsoft.ApplicationInsights.DataContracts.TelemetryContext context ) : void
context Microsoft.ApplicationInsights.DataContracts.TelemetryContext
return void

OsVersionContextInitializer() public method

Initializes a new instance of the T:System.Object class.
public OsVersionContextInitializer ( string osVersion = null ) : System
osVersion string The os version.
return System