Add basic notifications handling

This commit is contained in:
Daniel Clark
2022-12-17 21:54:12 +00:00
parent 369e359622
commit 44883eaef7
4 changed files with 45 additions and 11 deletions
@@ -2,6 +2,8 @@
public interface IMediator
{
ValueTask Publish<TNotification>(TNotification notification, CancellationToken cancellationToken = default) where TNotification : INotification;
ValueTask<TResponse> Send<TResponse>(IRequest<TResponse> request, CancellationToken cancellationToken = default);
ValueTask<TResponse> Send<TResponse>(ICommand<TResponse> command, CancellationToken cancellationToken = default);