public LocalEventBus( ILoggerFactory loggerFactory, IServiceProvider serviceProvider) { _logger = loggerFactory.CreateLogger(GetType()); _handlerFactory = new HandlerFactory(serviceProvider); _handlerFactory.Logger = loggerFactory.CreateLogger(_handlerFactory.GetType()); }