private static string ConvertPolicyToKind(OutboundRoutingType type) { switch (type) { case OutboundRoutingType.Unicast: return("queue"); case OutboundRoutingType.Multicast: return("topic"); default: return(null); } }
/// <summary> /// Creates new policy object. /// </summary> /// <param name="sends">Policy for sends.</param> /// <param name="publishes">Policy for publishes.</param> /// <param name="replies">Policy for replies.</param> public OutboundRoutingPolicy(OutboundRoutingType sends, OutboundRoutingType publishes, OutboundRoutingType replies) { Sends = sends; Publishes = publishes; Replies = replies; }