コード例 #1
0
 /// <summary>
 /// Create forwarder
 /// </summary>
 /// <param name="queue"></param>
 public MonitoredItemSampleForwarder(IEventQueueService queue)
 {
     if (queue == null)
     {
         throw new ArgumentNullException(nameof(queue));
     }
     _client = queue.OpenAsync().Result;
 }
コード例 #2
0
 /// <summary>
 /// Create forwarder
 /// </summary>
 /// <param name="queue"></param>
 public UnknownTelemetryForwarder(IEventQueueService queue)
 {
     if (queue == null)
     {
         throw new ArgumentNullException(nameof(queue));
     }
     _client = queue.OpenAsync().Result;
 }
コード例 #3
0
 /// <summary>
 /// Create forwarder
 /// </summary>
 /// <param name="queue"></param>
 /// <param name="serializer"></param>
 public MonitoredItemSampleForwarder(IEventQueueService queue,
                                     IJsonSerializer serializer)
 {
     _serializer = serializer ??
                   throw new ArgumentNullException(nameof(serializer));
     if (queue == null)
     {
         throw new ArgumentNullException(nameof(queue));
     }
     _client = queue.OpenAsync().Result;
 }