public static ValueTask SendExchangeDeclareAsync(this RabbitMQProtocolWriter protocol, ushort channelId, ExchangeDeclare message, CancellationToken token = default) { return(protocol.WriteAsync(new ExchangeDeclareWriter(channelId), message, token)); }
public static ValueTask SendChannelOpenAsync(this RabbitMQProtocolWriter protocol, ushort channelId, CancellationToken token = default) { return(protocol.WriteAsync(_channelOpenWriter, channelId, token)); }
public static ValueTask SendProtocol(this RabbitMQProtocolWriter protocol, CancellationToken token = default) { return(protocol.WriteAsync(_byteWriter, _protocolMsg, token)); }
public static ValueTask SendBasicConsumeAsync(this RabbitMQProtocolWriter protocol, ushort channelId, ConsumeConf info, CancellationToken token = default) { return(protocol.WriteAsync(new BasicConsumeWriter(channelId), info, token)); }
public static ValueTask SendConnectionCloseOkAsync(this RabbitMQProtocolWriter protocol, CancellationToken token = default) { return(protocol.SendCloseOk(1, 0, 10, 51, token)); }
public static ValueTask SendHeartbeat(this RabbitMQProtocolWriter protocol, CancellationToken token = default) { return(protocol.WriteAsync(_byteWriter, _heartbeatFrame, token)); }
public static ValueTask SendConnectionCloseAsync(this RabbitMQProtocolWriter protocol, CloseInfo info, CancellationToken token = default) { return(protocol.SendClose(0, 10, 50, info, token)); }
public static ValueTask SendOpenAsync(this RabbitMQProtocolWriter protocol, string vhost, CancellationToken token = default) { return(protocol.WriteAsync(new ConnectionOpenWriter(), vhost, token)); }
public static ValueTask SendTuneOkAsync(this RabbitMQProtocolWriter protocol, TuneConf info, CancellationToken token = default) { return(protocol.WriteAsync(new ConnectionTuneOkWriter(), info, token)); }
public static ValueTask SendStartOkAsync(this RabbitMQProtocolWriter protocol, ClientConf clientInfo, ConnectionConf connInfo, CancellationToken token = default) { return(protocol.WriteAsync(new ConnectionStartOkWriter(connInfo), clientInfo, token)); }
public static ValueTask SendQueueDeclareAsync(this RabbitMQProtocolWriter protocol, ushort channelId, QueueDeclare info) { return(protocol.WriteAsync(new QueueDeclareWriter(channelId), info)); }