public ExchangeSchema(string name, ExchangeKind type = ExchangeKind.Direct, bool durable = true, bool autoDelete = false, bool delayed = false, string alternate = null) { Name = name; Type = type; Durable = durable; AutoDelete = autoDelete; Delayed = delayed; Alternate = alternate; }
public static LinkExchangeType ToLinkExchangeType(this ExchangeKind kind) { switch (kind) { case ExchangeKind.Fanout: return(LinkExchangeType.Fanout); case ExchangeKind.Direct: return(LinkExchangeType.Direct); case ExchangeKind.Topic: return(LinkExchangeType.Topic); default: throw new ArgumentOutOfRangeException(nameof(kind), kind, null); } }
public static string GetExchangeKindName(ExchangeKind kind) { switch (kind) { case ExchangeKind.Direct: return("direct"); case ExchangeKind.Fanout: return("fanout"); case ExchangeKind.Headers: return("headers"); case ExchangeKind.Topic: return("topic"); default: return(String.Empty); } }
/// <summary> /// Typed named separate exchange /// </summary> /// <param name="name">exchange name</param> /// <param name="kind">exchange kind</param> public ResponseExchangeAttribute(string name, ExchangeKind kind) { Kind = kind; Name = name ?? throw new ArgumentNullException(nameof(name)); }
/// <summary> /// Typed separate exchange declaration /// </summary> /// <param name="kind">exchange type</param> public ResponseExchangeAttribute(ExchangeKind kind) { Kind = kind; }
public virtual string GetRoutingKey(HttpRequestMessage request, ExchangeKind exchangeKind) { return(null); }
public static string GetExchangeName(MessagingConfiguration messagingConfig, string serviceName, ExchangeKind kind) { return(exchangePrefix + serviceName + "." + GetExchangeKindName(kind) + (messagingConfig.PersistentWorkQueuesAndExchanges ? ".persistent" : String.Empty)); }
public virtual string GetRoutingKey(HttpRequestMessage request, ExchangeKind exchangeKind) { return null; }
public static string GetExchangeName(MessagingConfiguration messagingConfig, string serviceName, ExchangeKind kind) { return exchangePrefix + serviceName + "." + GetExchangeKindName(kind) + (messagingConfig.PersistentWorkQueuesAndExchanges ? ".persistent" : String.Empty); }
public static string GetExchangeKindName(ExchangeKind kind) { switch (kind) { case ExchangeKind.Direct: return "direct"; case ExchangeKind.Fanout: return "fanout"; case ExchangeKind.Headers: return "headers"; case ExchangeKind.Topic: return "topic"; default: return String.Empty; } }
/// <summary> /// Typed separate exchange declaration /// </summary> /// <param name="kind">exchange type</param> public ExchangeAttribute(ExchangeKind kind) { Kind = kind; }