示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Coding4Fun.VisualStudio.ApplicationInsights.Channel.InMemoryChannel" /> class. Used in unit tests for constructor injection.
 /// </summary>
 /// <param name="telemetryBuffer">The telemetry buffer that will be used to enqueue new events.</param>
 /// <param name="transmitter">The in memory transmitter that will send the events queued in the buffer.</param>
 internal InMemoryChannel(TelemetryBuffer telemetryBuffer, InMemoryTransmitter transmitter)
 {
     buffer           = telemetryBuffer;
     this.transmitter = transmitter;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Coding4Fun.VisualStudio.ApplicationInsights.Channel.InMemoryChannel" /> class.
 /// </summary>
 public InMemoryChannel()
 {
     buffer      = new TelemetryBuffer();
     transmitter = new InMemoryTransmitter(buffer);
 }