File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
AppCoreNet.Mediator.Abstractions Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ public interface IMediator
18
18
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
19
19
/// <typeparam name="TResponse">The type of the response.</typeparam>
20
20
/// <returns>A task that represents the asynchronous operation.</returns>
21
- Task < TResponse > RequestAsync < TResponse > ( IRequest < TResponse > request , CancellationToken cancellationToken = default ) ;
21
+ Task < TResponse > ProcessAsync < TResponse > ( IRequest < TResponse > request , CancellationToken cancellationToken = default ) ;
22
22
23
23
/// <summary>
24
- /// Sends a notification.
24
+ /// Publishes a notification.
25
25
/// </summary>
26
26
/// <param name="notification">The notification to publish.</param>
27
27
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
28
28
/// <returns>A task that represents the asynchronous notification operation.</returns>
29
- Task NotifyAsync ( INotification notification , CancellationToken cancellationToken = default ) ;
29
+ Task PublishAsync ( INotification notification , CancellationToken cancellationToken = default ) ;
30
30
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public Mediator(
35
35
}
36
36
37
37
/// <inheritdoc />
38
- public async Task < TResponse > RequestAsync < TResponse > (
38
+ public async Task < TResponse > ProcessAsync < TResponse > (
39
39
IRequest < TResponse > request ,
40
40
CancellationToken cancellationToken = default )
41
41
{
@@ -47,7 +47,7 @@ public async Task<TResponse> RequestAsync<TResponse>(
47
47
}
48
48
49
49
/// <inheritdoc />
50
- public async Task NotifyAsync ( INotification notification , CancellationToken cancellationToken = default )
50
+ public async Task PublishAsync ( INotification notification , CancellationToken cancellationToken = default )
51
51
{
52
52
Ensure . Arg . NotNull ( notification ) ;
53
53
You can’t perform that action at this time.
0 commit comments