Add basic notifications handling
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user