try to refactor Kafka and add supports for RabbitMQ ...
This commit is contained in:
@@ -9,6 +9,9 @@ namespace xEventService.Constants
|
||||
//
|
||||
// Defaults ...
|
||||
public const string XDefaultTopic = "XSaherelm";
|
||||
public const string XDefaultConsumerGroup = "XSaherElmGroup";
|
||||
public const string XDefaultConsumerGroup = "XSaherElmGroup";
|
||||
|
||||
//
|
||||
public const string XWildcard = "*";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xEventService.Constants
|
||||
{
|
||||
/// <summary>
|
||||
/// Available RabbitMQ Exchange Types ...
|
||||
/// </summary>
|
||||
public struct XRabbitMQExchangeTypes
|
||||
{
|
||||
public const string None = "none";
|
||||
public const string Direct = "direct";
|
||||
public const string Fanout = "fanout";
|
||||
public const string Topic = "topic";
|
||||
public const string Headers = "headers";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// RabbitMQ Exchange Type Enum ...
|
||||
/// </summary>
|
||||
public enum XRabbitMQExchangeType
|
||||
{
|
||||
[StringValue(XRabbitMQExchangeTypes.None)]
|
||||
None,
|
||||
|
||||
[StringValue(XRabbitMQExchangeTypes.Direct)]
|
||||
Direct,
|
||||
|
||||
[StringValue(XRabbitMQExchangeTypes.Fanout)]
|
||||
Fanout,
|
||||
|
||||
[StringValue(XRabbitMQExchangeTypes.Topic)]
|
||||
Topic,
|
||||
|
||||
[StringValue(XRabbitMQExchangeTypes.Headers)]
|
||||
Headers,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user