internal static async Task QoS(this RabbitMQSession session, RabbitMQChannel channel, QoSInfo qos) { var data = session.GetChannelData(channel.ChannelId); data.CommonTcs = new TaskCompletionSource <int>(TaskCreationOptions.RunContinuationsAsynchronously); await session.Writer.SendBasicQoSAsync(channel.ChannelId, ref qos).ConfigureAwait(false); await data.CommonTcs.Task.ConfigureAwait(false); }
public Task QoS(QoSInfo qos) { return(Session.QoS(this, qos)); }