mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Standardizes cancellation token parameter documentation
This commit is contained in:
1 parent
e6fa85f7c6
commit
6991640710
15 files changed
+16
-16
No files matched your search
@@ -17,7 +17,7 @@ public interface ICommandHandler<in TCommand, TResult> where TCommand : ICommand
|
||||
/// Handles the specified command and returns a result.
|
||||
/// </summary>
|
||||
/// <param name="command">The command to handle.</param>
|
||||
/// <param name="cancellationToken">Token to monitor for cancellation requests.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the result of the command execution.</returns>
|
||||
Task<TResult> HandleAsync(TCommand command, CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public interface IQueryHandler<in TQuery, TResult> where TQuery : IQuery
|
||||
/// Handles the specified query and returns a result.
|
||||
/// </summary>
|
||||
/// <param name="query">The query to handle.</param>
|
||||
/// <param name="cancellationToken">Token to monitor for cancellation requests.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the result of the query execution.</returns>
|
||||
Task<TResult> HandleAsync(TQuery query, CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ public class TelemetryCommandHandlerDecorator<TCommand, TResult> : ICommandHandl
|
||||
/// Handles the specified command, emitting telemetry around the execution of the wrapped handler.
|
||||
/// </summary>
|
||||
/// <param name="command">The command to handle.</param>
|
||||
/// <param name="cancellationToken">Token to monitor for cancellation requests.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the result of the command execution.</returns>
|
||||
public async Task<TResult> HandleAsync(TCommand command, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ public class TelemetryDomainEventHandlerDecorator<TDomainEvent> : IDomainEventHa
|
||||
/// Handles the specified domain event, emitting telemetry around the execution of the wrapped handler.
|
||||
/// </summary>
|
||||
/// <param name="domainEvent">The domain event to handle.</param>
|
||||
/// <param name="cancellationToken">Token to monitor for cancellation requests.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
public async ValueTask HandleAsync(TDomainEvent domainEvent, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ public class TelemetryQueryHandlerDecorator<TQuery, TResult> : IQueryHandler<TQu
|
||||
/// Handles the specified query, emitting telemetry around the execution of the wrapped handler.
|
||||
/// </summary>
|
||||
/// <param name="query">The query to handle.</param>
|
||||
/// <param name="cancellationToken">Token to monitor for cancellation requests.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>A task that represents the asynchronous operation, containing the result of the query execution.</returns>
|
||||
public async Task<TResult> HandleAsync(TQuery query, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user