Skip to content

Commit

Permalink
Fixed unsaved file
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jan 5, 2024
1 parent 56b7d7f commit eb9a76c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Foundatio/Messaging/NullMessageBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(Func<T, CancellationToken, Task> 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<T>(Func<T, CancellationToken, Task> handler, CancellationToken cancellationToken = default) where T : class
{
return Task.CompletedTask;
}

public void Dispose() { }
}

0 comments on commit eb9a76c

Please sign in to comment.