Пример #1
0
 /// <summary>
 /// Sends an instance of ITelemetry through the channel.
 /// </summary>
 public void Send(ITelemetry item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     try
     {
         buffer.Enqueue(item);
         CoreEventSource.Log.LogVerbose("TelemetryBuffer.Enqueue succeeded");
     }
     catch (Exception ex)
     {
         CoreEventSource.Log.LogVerbose("TelemetryBuffer.Enqueue failed: ", ex.ToString());
     }
 }
Пример #2
0
 /// <summary>
 /// Sends an instance of ITelemetry through the channel.
 /// </summary>
 public void Send(ITelemetry item)
 {
     TelemetryBuffer.Enqueue(item);
 }