/// <summary> /// Create forwarder /// </summary> /// <param name="queue"></param> public MonitoredItemSampleForwarder(IEventQueueService queue) { if (queue == null) { throw new ArgumentNullException(nameof(queue)); } _client = queue.OpenAsync().Result; }
/// <summary> /// Create forwarder /// </summary> /// <param name="queue"></param> public UnknownTelemetryForwarder(IEventQueueService queue) { if (queue == null) { throw new ArgumentNullException(nameof(queue)); } _client = queue.OpenAsync().Result; }
/// <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; }