Remove Old Stuffs for Refactor xEvent Service for Kafka and RabbitMQ ...
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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<Null, string> producer;
|
||||
private readonly ILogger<RpkKafkaProducerService> logger;
|
||||
|
||||
public XKafkaProducerService(
|
||||
ILoggeer<XKafkaProducerService> logger,
|
||||
XEventServiceConfiguration configuration
|
||||
)
|
||||
{
|
||||
//
|
||||
this.logger = logger;
|
||||
|
||||
//
|
||||
// Validate Configurations ...
|
||||
if (!configuration.IsValid() ||
|
||||
configuration.Broker != Constants.XEventBroker.XKafka
|
||||
)
|
||||
{
|
||||
XException.InvalidConfiguration.Throw();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user