protected override Task ExecuteAsync(CancellationToken stoppingToken) { _edgeDeviceDataEventsConsumer.Subscribe <DeviceDescriptionEvent, DeviceDescriptionEventHandler>("DeviceDescription"); _edgeDeviceEventsConsumer.Subscribe <DeviceConnectionStateChangedEvent, DeviceConnectionStateChangedEventHandler>("DeviceConnectionStateChanged"); return(Task.CompletedTask); }
public void Subscribe() { _bookEventConsumer.Subscribe(); _deleteBookEventConsumer.Subscribe(); }