Пример #1
0
 public ValueTask QueueUnbindAsync(QueueUnbind unbind)
 {
     return(Session.QueueUnbindAsync(this, unbind));
 }
        public static async ValueTask QueueUnbindAsync(this RabbitMQSession session, RabbitMQChannel channel, QueueUnbind unbind)
        {
            session.Channels.TryGetValue(channel.ChannelId, out var src);
            src.CommonTcs = new TaskCompletionSource <int>(TaskCreationOptions.RunContinuationsAsynchronously);
            await session.Writer.SendQueueUnbindAsync(channel.ChannelId, unbind).ConfigureAwait(false);

            await src.CommonTcs.Task.ConfigureAwait(false);
        }