Пример #1
0
        /// <summary>
        /// Purges a queue
        /// </summary>
        /// <param name="bus">The bus instance</param>
        /// <param name="queue">The queue to purge</param>
        /// <param name="cancellationToken">The cancellation token</param>
        public static void QueuePurge(this IAdvancedBus bus, IQueue queue, CancellationToken cancellationToken = default)
        {
            Preconditions.CheckNotNull(bus, "bus");

            bus.QueuePurgeAsync(queue, cancellationToken)
            .GetAwaiter()
            .GetResult();
        }