public void HasRoutingType(ExchangeRoutingType routingType) { switch (routingType) { case ExchangeRoutingType.Fanout: RoutingType = "fanout"; break; case ExchangeRoutingType.Direct: RoutingType = "direct"; break; case ExchangeRoutingType.Topic: RoutingType = "topic"; break; case ExchangeRoutingType.Headers: RoutingType = "headers"; break; case ExchangeRoutingType.Federated: RoutingType = "federated"; break; case ExchangeRoutingType.Match: RoutingType = "match"; break; default: throw new ArgumentOutOfRangeException(nameof(routingType), routingType, null); } }
public ExchangeRequest(ExchangeRoutingType routingType, bool durable, bool autoDelete, bool @internal, IDictionary <string, object> arguments) { RoutingType = routingType; Durable = durable; AutoDelete = autoDelete; Internal = @internal; Arguments = arguments; }
public void HasRoutingType(ExchangeRoutingType routingType) => RoutingType = routingType;