Commit 725b4677 authored by yangxiaodong's avatar yangxiaodong

Add ExchangeName and ExchangeType config.

parent b69e355e
...@@ -25,9 +25,17 @@ ...@@ -25,9 +25,17 @@
/// <remarks> PLEASE KEEP THIS MATCHING THE DOC ABOVE.</remarks> /// <remarks> PLEASE KEEP THIS MATCHING THE DOC ABOVE.</remarks>
public const string DefaultVHost = "/"; public const string DefaultVHost = "/";
/// <summary>
/// Default exchange name (value: "cap").
/// </summary>
public const string DefaultExchangeName = "cap";
/// <summary>The host to connect to.</summary> /// <summary>The host to connect to.</summary>
public string HostName { get; set; } = "localhost"; public string HostName { get; set; } = "localhost";
/// <summary> The topic exchange type. </summary>
internal string EXCHANGE_TYPE = "topic";
/// <summary> /// <summary>
/// Password to use when authenticating to the server. /// Password to use when authenticating to the server.
/// </summary> /// </summary>
...@@ -43,6 +51,11 @@ ...@@ -43,6 +51,11 @@
/// </summary> /// </summary>
public string VirtualHost { get; set; } = DefaultVHost; public string VirtualHost { get; set; } = DefaultVHost;
/// <summary>
/// Topic exchange name when declare a topic exchange.
/// </summary>
public string TopicExchangeName { get; set; } = DefaultExchangeName;
/// <summary> /// <summary>
/// Timeout setting for connection attempts (in milliseconds). /// Timeout setting for connection attempts (in milliseconds).
/// </summary> /// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment