public async Task ConfigureServices(IServiceProvider serviceProvider) { // Processor is defined on certain site, however events can come from many sources. // Commands that are produced by processor can be then pushed to server or processed locally IProcessorSubscriptionController controller = serviceProvider.GetRequiredService <IProcessorSubscriptionController>(); foreach (var i in _processors) { await controller.SubscribeHandlers(i, new ProcessorEventHandlerFactory(serviceProvider, i)); } }
public async Task ConfigureServices(IServiceProvider serviceProvider) { IProcessorSubscriptionController controller = serviceProvider.GetRequiredService <IProcessorSubscriptionController>(); Log.Debug("Configuring processor slices:"); foreach (var i in _processors) { Log.Debug($"Processor: {i.Type.Name} in {i.Category}"); await controller.SubscribeHandlers(i, new ProcessorEventHandlerFactory(serviceProvider, i)); } }