add supports for ZeroMQ, XRabbitMQ, XKafka ...
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xCommons.Extensions;
|
||||
using xEventService.Configuration;
|
||||
using xEventService.Extensions;
|
||||
using xExceptions.Constants;
|
||||
|
||||
namespace xEventService.Providers
|
||||
{
|
||||
public abstract class XBaseEventProducerService
|
||||
{
|
||||
protected readonly XEventServiceConfiguration configuration;
|
||||
protected readonly ILogger<XBaseEventProducerService> logger;
|
||||
|
||||
protected XBaseEventProducerService(
|
||||
XEventServiceConfiguration configuration,
|
||||
ILogger<XBaseEventProducerService> logger
|
||||
)
|
||||
{
|
||||
//
|
||||
this.logger = logger;
|
||||
this.configuration = configuration;
|
||||
|
||||
//
|
||||
// Validate Configurations ...
|
||||
if (!configuration.IsValid())
|
||||
{
|
||||
XException.InvalidConfiguration.Throw();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user