using xCommons.Extensions; using xExceptions.Constants; using xEventService.Extensions; using xEventService.Configuration; using Microsoft.Extensions.Logging; namespace xEventService.Providers { public abstract class XBaseEventProducerService { protected readonly XEventServiceConfiguration configuration; protected readonly ILogger logger; protected XBaseEventProducerService( XEventServiceConfiguration configuration, ILogger logger ) { // this.logger = logger; this.configuration = configuration; // // Validate Configurations ... if (!configuration.IsValid()) { XException.InvalidConfiguration.Throw(); } } } }