Microsoft.ApplicationInsights.ServiceFabric.FabricTelemetryInitializerExtension.GetContextContractDictionaryFromServiceContext(ServiceContext)

Here are the examples of the csharp api class Microsoft.ApplicationInsights.ServiceFabric.FabricTelemetryInitializerExtension.GetContextContractDictionaryFromServiceContext(ServiceContext) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: ApplicationInsights-ServiceFabric
Source File: FabricTelemetryInitializerExtension.cs
public static FabricTelemetryInitializer CreateFabricTelemetryInitializer(ServiceContext context)
        {
            return new FabricTelemetryInitializer(GetContextContractDictionaryFromServiceContext(context));
        }

2. Example

Project: ApplicationInsights-ServiceFabric
Source File: FabricTelemetryInitializerExtension.cs
public static void SetServiceCallContext(ServiceContext context)
        {
            // The call initializes TelemetryConfiguration that will create and Intialize modules.
            TelemetryConfiguration configuration = TelemetryConfiguration.Active;

            CallContext.LogicalSetData(ServiceContextKeyName, GetContextContractDictionaryFromServiceContext(context));
        }