コード例 #1
0
 /// <summary>
 /// (Extension method) Convenience overload of BasicPublish.
 /// </summary>
 /// <remarks>
 /// The publication occurs with mandatory=false and immediate=false.
 /// </remarks>
 public static void BasicPublish(this IModel model, PublicationAddress addr, IBasicProperties basicProperties, byte[] body)
 {
     model.BasicPublish(addr.ExchangeName, addr.RoutingKey, basicProperties: basicProperties, body: body);
 }
コード例 #2
0
 /// <summary>
 /// (Extension method) Convenience overload of BasicPublish.
 /// </summary>
 /// <remarks>
 /// The publication occurs with mandatory=false
 /// </remarks>
 public static void BasicPublish(this IModel model, string exchange, string routingKey, IBasicProperties basicProperties, byte[] body)
 {
     model.BasicPublish(exchange, routingKey, false, basicProperties, body);
 }
コード例 #3
0
 /// <summary>
 /// (Spec method) Convenience overload of BasicPublish.
 /// </summary>
 public static void BasicPublish(this IModel model, string exchange, string routingKey, bool mandatory = false, IBasicProperties basicProperties = null, byte[] body = null)
 {
     model.BasicPublish(exchange, routingKey, mandatory, basicProperties, body);
 }
コード例 #4
0
        public static TaskSlim BasicPublish(this Channel source, 
			string exchange, string routingKey, bool mandatory, bool immediate,
			BasicProperties properties, byte[] buffer)
        {
            return source.BasicPublish(exchange, routingKey, mandatory, immediate, properties, new ArraySegment<byte>(buffer));
        }