Skip to content

Commit 7224c06

Browse files
committed
Renaming.
1 parent a2d4993 commit 7224c06

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/AppCoreNet.Mediator.Abstractions/IMediator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public interface IMediator
1818
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
1919
/// <typeparam name="TResponse">The type of the response.</typeparam>
2020
/// <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);
2222

2323
/// <summary>
24-
/// Sends a notification.
24+
/// Publishes a notification.
2525
/// </summary>
2626
/// <param name="notification">The notification to publish.</param>
2727
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
2828
/// <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);
3030
}

src/AppCoreNet.Mediator/Mediator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Mediator(
3535
}
3636

3737
/// <inheritdoc />
38-
public async Task<TResponse> RequestAsync<TResponse>(
38+
public async Task<TResponse> ProcessAsync<TResponse>(
3939
IRequest<TResponse> request,
4040
CancellationToken cancellationToken = default)
4141
{
@@ -47,7 +47,7 @@ public async Task<TResponse> RequestAsync<TResponse>(
4747
}
4848

4949
/// <inheritdoc />
50-
public async Task NotifyAsync(INotification notification, CancellationToken cancellationToken = default)
50+
public async Task PublishAsync(INotification notification, CancellationToken cancellationToken = default)
5151
{
5252
Ensure.Arg.NotNull(notification);
5353

0 commit comments

Comments
 (0)