public async Task StartAsync(CancellationToken cancellationToken) { _options.SetExceptionHandler(args => { _logger.TrackException(args.Exception, new { Partition = args.PartitionId, }); }); await _host.RegisterEventProcessorFactoryAsync(_factory, _options); _logger.TrackEvent("MessageEventProcessorServiceStarted"); }
public async Task StartAsync(CancellationToken cancellationToken) { _logger.TrackEvent("MyHostedService Started"); await Task.CompletedTask; }