Microsoft.ApplicationInsights.DependencyCollector.Implementation.FrameworkSqlProcessing.FrameworkSqlProcessing C# (CSharp) Method

FrameworkSqlProcessing() private method

Initializes a new instance of the FrameworkSqlProcessing class.
private FrameworkSqlProcessing ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration, Microsoft.ApplicationInsights.DependencyCollector.Implementation.Operation.CacheBasedOperationHolder telemetryTupleHolder ) : System
configuration Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
telemetryTupleHolder Microsoft.ApplicationInsights.DependencyCollector.Implementation.Operation.CacheBasedOperationHolder
return System
        internal FrameworkSqlProcessing(TelemetryConfiguration configuration, CacheBasedOperationHolder telemetryTupleHolder)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (telemetryTupleHolder == null)
            {
                throw new ArgumentNullException("telemetryHolder");
            }

            this.TelemetryTable = telemetryTupleHolder;
            this.telemetryClient = new TelemetryClient(configuration);

            // Since dependencySource is no longer set, sdk version is prepended with information which can identify whether RDD was collected by profiler/framework

            // For directly using TrackDependency(), version will be simply what is set by core
            string prefix = "rdd" + RddSource.Framework + ":";
            this.telemetryClient.Context.GetInternalContext().SdkVersion = SdkVersionUtils.GetSdkVersion(prefix);
        }