using xCommons.Extensions; using xExceptions.Constants; using xEventService.Extensions; using xEventService.Interfaces; using xEventService.Configuration; namespace xEventService.Providers { public class XKafkaProducerService : IXKafkaProducerService { private readonly IProducer producer; private readonly ILogger logger; public XKafkaProducerService( ILoggeer logger, XEventServiceConfiguration configuration ) { // this.logger = logger; // // Validate Configurations ... if (!configuration.IsValid() || configuration.Broker != Constants.XEventBroker.XKafka ) { XException.InvalidConfiguration.Throw(); } } } }