コード例 #1
0
 /// <summary>
 /// Create publisher
 /// </summary>
 /// <param name="callback"></param>
 public MonitoredItemMessagePublisher(ICallbackInvoker callback)
 {
     _callback = callback ?? throw new ArgumentNullException(nameof(callback));
 }
コード例 #2
0
 /// <summary>
 /// Create publisher
 /// </summary>
 /// <param name="callback"></param>
 public DiscoveryProgressPublisher(ICallbackInvoker callback)
 {
     _callback = callback ?? throw new ArgumentNullException(nameof(callback));
 }
コード例 #3
0
 /// <summary>
 /// Create event publisher
 /// </summary>
 /// <param name="bus"></param>
 /// <param name="callback"></param>
 /// <param name="logger"></param>
 public RegistryEventPublisherHost(IEventBus bus, ICallbackInvoker callback, ILogger logger)
 {
     _logger   = logger ?? throw new ArgumentNullException(nameof(logger));
     _bus      = bus ?? throw new ArgumentNullException(nameof(bus));
     _callback = callback ?? throw new ArgumentNullException(nameof(callback));
 }