private DependencyTableStore() { #if !NET40 this.WebRequestCacheHolder = new CacheBasedOperationHolder(); this.SqlRequestCacheHolder = new CacheBasedOperationHolder(); #endif this.WebRequestConditionalHolder = new ObjectInstanceBasedOperationHolder(); this.SqlRequestConditionalHolder = new ObjectInstanceBasedOperationHolder(); }
/// <summary> /// Initializes a new instance of the <see cref="FrameworkSqlProcessing"/> class. /// </summary> 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 this.telemetryClient.Context.GetInternalContext().SdkVersion = string.Format(CultureInfo.InvariantCulture, "rdd{0}: {1}", RddSource.Framework, SdkVersionUtils.GetAssemblyVersion()); }
internal FrameworkHttpProcessing(TelemetryConfiguration configuration, CacheBasedOperationHolder telemetryTupleHolder) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (telemetryTupleHolder == null) { throw new ArgumentNullException("telemetryTupleHolder"); } this.applicationInsightsUrlFilter = new ApplicationInsightsUrlFilter(configuration); 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); }
public void TestInitialize() { this.telemetryTuple = new Tuple<DependencyTelemetry, bool>(new DependencyTelemetry(), true); this.cacheBasedOperationHolder = new CacheBasedOperationHolder(); }