Standardizes cancellation token parameter documentation

This commit is contained in:
BinaryAlley committed 2026-10-17 20:51:47 +03:00
1 parent e6fa85f7c6
commit 6991640710
15 files changed
+16 -16

No files matched your search

@@ -15,7 +15,7 @@ public interface IDomainEventHandler<TDomainEvent> where TDomainEvent : IDomainE
/// Handles the specified <paramref name="domainEvent"/>.
/// </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>
ValueTask HandleAsync(TDomainEvent domainEvent, CancellationToken cancellationToken);
}
@@ -14,7 +14,7 @@ public interface IDomainEventPublisher
/// Publishes the specified <paramref name="domainEvent"/> to all its registered handlers, in registration order.
/// </summary>
/// <param name="domainEvent">The domain event to publish.</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>
ValueTask PublishAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default);
}