예제 #1
0
        /// <summary>
        /// Delete a binding
        /// </summary>
        /// <param name="bus">The bus instance</param>
        /// <param name="binding">the binding to delete</param>
        /// <param name="cancellationToken">The cancellation token</param>
        public static void Unbind(this IAdvancedBus bus, IBinding binding, CancellationToken cancellationToken = default)
        {
            Preconditions.CheckNotNull(bus, "bus");

            bus.UnbindAsync(binding, cancellationToken)
            .GetAwaiter()
            .GetResult();
        }