public void TestInitialize()
 {
      this.configuration = new TelemetryConfiguration();
     this.sendItems = new List<ITelemetry>(); 
     this.configuration.TelemetryChannel = new StubTelemetryChannel { OnSend = item => this.sendItems.Add(item) };
     this.configuration.InstrumentationKey = Guid.NewGuid().ToString();
     this.sqlProcessingFramework = new FrameworkSqlProcessing(this.configuration, new CacheBasedOperationHolder());
 }
示例#2
0
 public void TestInitialize()
 {
     this.configuration = new TelemetryConfiguration();
     this.sendItems     = new List <ITelemetry>();
     this.configuration.TelemetryChannel = new StubTelemetryChannel {
         OnSend = item => this.sendItems.Add(item)
     };
     this.configuration.InstrumentationKey = Guid.NewGuid().ToString();
     this.sqlProcessingFramework           = new FrameworkSqlProcessing(this.configuration, new CacheBasedOperationHolder());
 }
 internal FrameworkSqlEventListener(TelemetryConfiguration configuration)
 {
     this.SqlProcessingFramework = new FrameworkSqlProcessing(configuration, DependencyTableStore.Instance.SqlRequestCacheHolder);
 }
 internal FrameworkSqlEventListener(TelemetryConfiguration configuration, CacheBasedOperationHolder telemetryTupleHolder)
 {
     this.SqlProcessingFramework = new FrameworkSqlProcessing(configuration, telemetryTupleHolder);
 }
 internal FrameworkSqlEventListener(TelemetryConfiguration configuration, CacheBasedOperationHolder telemetryTupleHolder, bool collectCommandText)
 {
     this.SqlProcessingFramework = new FrameworkSqlProcessing(configuration, telemetryTupleHolder);
     this.collectCommandText     = collectCommandText;
 }
 internal FrameworkSqlEventListener(TelemetryConfiguration configuration)
 {
     this.SqlProcessingFramework = new FrameworkSqlProcessing(configuration, DependencyTableStore.Instance.SqlRequestCacheHolder);
 }