Added subscription to Mediator to allow later subscriptions

This commit is contained in:
Daniel Clark
2022-12-18 19:22:02 +00:00
parent 44883eaef7
commit 06ca2fbc8b
5 changed files with 50 additions and 26 deletions
@@ -11,4 +11,6 @@ public interface IMediator
ValueTask<TResponse> Send<TResponse>(IQuery<TResponse> query, CancellationToken cancellationToken = default);
ValueTask<object?> Send(object message, CancellationToken cancellationToken = default);
void Subscribe(object subscriber);
}