/// <summary> /// Send a message directly to a queue /// </summary> /// <typeparam name="T">The type of message to send</typeparam> /// <param name="sendReceive">The sendReceive instance</param> /// <param name="queue">The queue to send to</param> /// <param name="message">The message</param> /// <param name="cancellationToken">The cancellation token</param> public static void Send <T>( this ISendReceive sendReceive, string queue, T message, CancellationToken cancellationToken = default ) { Preconditions.CheckNotNull(sendReceive, "sendReceive"); sendReceive.Send(queue, message, c => { }, cancellationToken); }
public virtual void Send <T>(string queue, T message) where T : class { sendReceive.Send(queue, message); }