diff --git a/src/Foundatio/Messaging/NullMessageBus.cs b/src/Foundatio/Messaging/NullMessageBus.cs index 841ec66d..2e0eb553 100644 --- a/src/Foundatio/Messaging/NullMessageBus.cs +++ b/src/Foundatio/Messaging/NullMessageBus.cs @@ -2,21 +2,21 @@ using System.Threading; using System.Threading.Tasks; -namespace Foundatio.Messaging -{ - public class NullMessageBus : IMessageBus - { - public static readonly NullMessageBus Instance = new(); +namespace Foundatio.Messaging; - public Task PublishAsync(Type messageType, object message, MessageOptions options = null, CancellationToken cancellationToken = default) - { - return Task.CompletedTask; - } +public class NullMessageBus : IMessageBus +{ + public static readonly NullMessageBus Instance = new(); - public Task SubscribeAsync(Func handler, CancellationToken cancellationToken = default) where T : class - { - return Task.CompletedTask; - } + public Task PublishAsync(Type messageType, object message, MessageOptions options = null, CancellationToken cancellationToken = default) + { + return Task.CompletedTask; + } - public void Dispose() { } + public Task SubscribeAsync(Func handler, CancellationToken cancellationToken = default) where T : class + { + return Task.CompletedTask; } + + public void Dispose() { } +}