Beispiel #1
0
                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);
                    }
                }
Beispiel #2
0
 public ExchangeRequest(ExchangeRoutingType routingType, bool durable, bool autoDelete, bool @internal, IDictionary <string, object> arguments)
 {
     RoutingType = routingType;
     Durable     = durable;
     AutoDelete  = autoDelete;
     Internal    = @internal;
     Arguments   = arguments;
 }
Beispiel #3
0
 public void HasRoutingType(ExchangeRoutingType routingType) => RoutingType = routingType;