public override async Task Stop(CancellationToken cancellationToken) { await EventHubConsumerService.UnregisterEventMessageConsumerAsync(EventHubName); }
public override async Task StartAction(CancellationToken cancellationToken) { await EventHubConsumerService.RegisterEventMessageConsumerAsync <DeviceEventProcessor>(EventHubName); }