/// <summary> /// Attempt to transmit routing keys over <paramref name="socket"/>. /// If message cannot be sent immediately, return <c>false</c>. /// Routing is always sent as more frame. /// </summary> /// <param name="socket">the IOutgoingSocket to transmit on</param> /// <param name="routingKeys">the routing keys to send</param> /// <returns><c>true</c> if a message was available, otherwise <c>false</c>.</returns> public static bool TrySendRoutingKeys(this IOutgoingSocket socket, IEnumerable <RoutingKey> routingKeys) { return(socket.TrySendRoutingKeys(TimeSpan.Zero, routingKeys)); }