Remove Old Stuffs for Refactor xEvent Service for Kafka and RabbitMQ ...

This commit is contained in:
2026-08-18 00:00:27 +03:30
parent a94013b591
commit 699fc721f5
18 changed files with 296 additions and 989 deletions
+32
View File
@@ -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();
}
}
}
}