/// <summary> /// Constructor. /// </summary> /// <param name="configService">A collection of library configuration settings.</param> public DomainEventHandlerService(EventStreamConfigService configService) { logger = new DebugLogger <DomainEventHandlerService>(configService.LoggerFactory); logger.LogDebug($"{nameof(DomainEventHandlerService)} is starting"); }
/// <summary> /// Constructor for non-DI-based client applications. /// </summary> /// <param name="LoggerFactory">When set, the library will emit Debug-level log output to the configured logger.</param> public EventStreamConfigService(ILoggerFactory loggerFactory = null) { LoggerFactory = loggerFactory; logger = new DebugLogger <EventStreamConfigService>(loggerFactory); logger.LogDebug($"{nameof(EventStreamConfigService)} is starting"); }
/// <summary> /// Constructor. /// </summary> /// <param name="configService">A collection of library configuration settings.</param> public ProjectionHandlerService(EventStreamConfigService configService) { this.configService = configService; logger = new DebugLogger <ProjectionHandlerService>(configService.LoggerFactory); logger.LogDebug($"{nameof(ProjectionHandlerService)} is starting"); }