diff --git a/src/Lumina.Application/Common/CQRS/ICommandHandler.cs b/src/Lumina.Application/Common/CQRS/ICommandHandler.cs index 19e0018d..04842335 100644 --- a/src/Lumina.Application/Common/CQRS/ICommandHandler.cs +++ b/src/Lumina.Application/Common/CQRS/ICommandHandler.cs @@ -17,7 +17,7 @@ public interface ICommandHandler where TCommand : ICommand /// Handles the specified command and returns a result. /// /// The command to handle. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation, containing the result of the command execution. Task HandleAsync(TCommand command, CancellationToken cancellationToken = default); } diff --git a/src/Lumina.Application/Common/CQRS/IQueryHandler.cs b/src/Lumina.Application/Common/CQRS/IQueryHandler.cs index 8b5fadde..9f33322e 100644 --- a/src/Lumina.Application/Common/CQRS/IQueryHandler.cs +++ b/src/Lumina.Application/Common/CQRS/IQueryHandler.cs @@ -17,7 +17,7 @@ public interface IQueryHandler where TQuery : IQuery /// Handles the specified query and returns a result. /// /// The query to handle. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation, containing the result of the query execution. Task HandleAsync(TQuery query, CancellationToken cancellationToken = default); } diff --git a/src/Lumina.Application/Common/Telemetry/TelemetryCommandHandlerDecorator.cs b/src/Lumina.Application/Common/Telemetry/TelemetryCommandHandlerDecorator.cs index 29123465..d71c82a1 100644 --- a/src/Lumina.Application/Common/Telemetry/TelemetryCommandHandlerDecorator.cs +++ b/src/Lumina.Application/Common/Telemetry/TelemetryCommandHandlerDecorator.cs @@ -36,7 +36,7 @@ public class TelemetryCommandHandlerDecorator : ICommandHandl /// Handles the specified command, emitting telemetry around the execution of the wrapped handler. /// /// The command to handle. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation, containing the result of the command execution. public async Task HandleAsync(TCommand command, CancellationToken cancellationToken) { diff --git a/src/Lumina.Application/Common/Telemetry/TelemetryDomainEventHandlerDecorator.cs b/src/Lumina.Application/Common/Telemetry/TelemetryDomainEventHandlerDecorator.cs index 02e96c1f..99171558 100644 --- a/src/Lumina.Application/Common/Telemetry/TelemetryDomainEventHandlerDecorator.cs +++ b/src/Lumina.Application/Common/Telemetry/TelemetryDomainEventHandlerDecorator.cs @@ -35,7 +35,7 @@ public class TelemetryDomainEventHandlerDecorator : IDomainEventHa /// Handles the specified domain event, emitting telemetry around the execution of the wrapped handler. /// /// The domain event to handle. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation. public async ValueTask HandleAsync(TDomainEvent domainEvent, CancellationToken cancellationToken) { diff --git a/src/Lumina.Application/Common/Telemetry/TelemetryQueryHandlerDecorator.cs b/src/Lumina.Application/Common/Telemetry/TelemetryQueryHandlerDecorator.cs index f5529bb6..5712d6f2 100644 --- a/src/Lumina.Application/Common/Telemetry/TelemetryQueryHandlerDecorator.cs +++ b/src/Lumina.Application/Common/Telemetry/TelemetryQueryHandlerDecorator.cs @@ -36,7 +36,7 @@ public class TelemetryQueryHandlerDecorator : IQueryHandler /// The query to handle. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation, containing the result of the query execution. public async Task HandleAsync(TQuery query, CancellationToken cancellationToken) { diff --git a/src/Lumina.Domain/Common/Events/IDomainEventHandler.cs b/src/Lumina.Domain/Common/Events/IDomainEventHandler.cs index 9209e99d..14354c5d 100644 --- a/src/Lumina.Domain/Common/Events/IDomainEventHandler.cs +++ b/src/Lumina.Domain/Common/Events/IDomainEventHandler.cs @@ -15,7 +15,7 @@ public interface IDomainEventHandler where TDomainEvent : IDomainE /// Handles the specified . /// /// The domain event to handle. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation. ValueTask HandleAsync(TDomainEvent domainEvent, CancellationToken cancellationToken); } diff --git a/src/Lumina.Domain/Common/Events/IDomainEventPublisher.cs b/src/Lumina.Domain/Common/Events/IDomainEventPublisher.cs index df8b69fa..1529fd61 100644 --- a/src/Lumina.Domain/Common/Events/IDomainEventPublisher.cs +++ b/src/Lumina.Domain/Common/Events/IDomainEventPublisher.cs @@ -14,7 +14,7 @@ public interface IDomainEventPublisher /// Publishes the specified to all its registered handlers, in registration order. /// /// The domain event to publish. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation. ValueTask PublishAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default); } diff --git a/src/Lumina.Infrastructure/Common/DomainEvents/DomainEventPublisher.cs b/src/Lumina.Infrastructure/Common/DomainEvents/DomainEventPublisher.cs index 3c472e9b..15b3cf34 100644 --- a/src/Lumina.Infrastructure/Common/DomainEvents/DomainEventPublisher.cs +++ b/src/Lumina.Infrastructure/Common/DomainEvents/DomainEventPublisher.cs @@ -32,7 +32,7 @@ public class DomainEventPublisher : IDomainEventPublisher /// Publishes the specified to all its registered handlers, in registration order. /// /// The domain event to publish. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation. public ValueTask PublishAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default) { @@ -54,7 +54,7 @@ public class DomainEventPublisher : IDomainEventPublisher /// The type of the domain event being dispatched. /// The domain event to dispatch. /// The provider used to resolve the domain event handlers. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation. private static async Task DispatchAsync(IDomainEvent domainEvent, IServiceProvider serviceProvider, CancellationToken cancellationToken) where TDomainEvent : IDomainEvent diff --git a/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs b/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs index 75aa4ff8..b4413224 100644 --- a/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs +++ b/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs @@ -37,7 +37,7 @@ internal sealed class PluginSettingsStore : IPluginSettingsStore /// Gets the settings persisted by the host for the plugin identified by . /// /// The unique identifier of the plugin whose settings are read. - /// Cancellation token that can be used to cancel the operation. + /// Cancellation token that can be used to stop the execution. /// The persisted settings keyed by setting key, or when no settings were persisted for the plugin. public async Task?> GetSettingsAsync(Guid pluginId, CancellationToken cancellationToken) { diff --git a/src/Lumina.Infrastructure/Core/Scheduling/Execution/IScheduledJobCycleTicker.cs b/src/Lumina.Infrastructure/Core/Scheduling/Execution/IScheduledJobCycleTicker.cs index b25a91a3..5278f302 100644 --- a/src/Lumina.Infrastructure/Core/Scheduling/Execution/IScheduledJobCycleTicker.cs +++ b/src/Lumina.Infrastructure/Core/Scheduling/Execution/IScheduledJobCycleTicker.cs @@ -26,7 +26,7 @@ internal interface IScheduledJobCycleTicker : IDisposable /// /// Waits until the next tick of the ticker, or until the ticker is disposed or is cancelled. /// - /// Cancellation token that can be used to stop the wait. + /// Cancellation token that can be used to stop the execution. /// when a tick occurred; when the ticker was disposed before the next tick. ValueTask WaitForNextTickAsync(CancellationToken cancellationToken); } diff --git a/src/Lumina.Infrastructure/Core/Scheduling/Execution/PeriodicScheduledJobCycleTicker.cs b/src/Lumina.Infrastructure/Core/Scheduling/Execution/PeriodicScheduledJobCycleTicker.cs index b7c788ff..7ea258a1 100644 --- a/src/Lumina.Infrastructure/Core/Scheduling/Execution/PeriodicScheduledJobCycleTicker.cs +++ b/src/Lumina.Infrastructure/Core/Scheduling/Execution/PeriodicScheduledJobCycleTicker.cs @@ -36,7 +36,7 @@ internal sealed class PeriodicScheduledJobCycleTicker : IScheduledJobCycleTicker /// /// Waits until the next tick of the ticker, or until the ticker is disposed or is cancelled. /// - /// Cancellation token that can be used to stop the wait. + /// Cancellation token that can be used to stop the execution. /// when a tick occurred; when the ticker was disposed before the next tick. public ValueTask WaitForNextTickAsync(CancellationToken cancellationToken) { diff --git a/src/Lumina.Plugins.Contracts/Core/Plugins/IPluginSettingsStore.cs b/src/Lumina.Plugins.Contracts/Core/Plugins/IPluginSettingsStore.cs index e3b6dac2..dc6e9213 100644 --- a/src/Lumina.Plugins.Contracts/Core/Plugins/IPluginSettingsStore.cs +++ b/src/Lumina.Plugins.Contracts/Core/Plugins/IPluginSettingsStore.cs @@ -16,7 +16,7 @@ public interface IPluginSettingsStore /// Gets the settings persisted by the host for the plugin identified by . /// /// The unique identifier of the plugin whose settings are read. - /// Cancellation token that can be used to cancel the operation. + /// Cancellation token that can be used to stop the execution. /// The persisted settings keyed by setting key, or when no settings were persisted for the plugin. Task?> GetSettingsAsync(Guid pluginId, CancellationToken cancellationToken); } diff --git a/src/Lumina.Presentation.Api/Common/HealthChecks/DatabaseHealthCheck.cs b/src/Lumina.Presentation.Api/Common/HealthChecks/DatabaseHealthCheck.cs index 9ff53c7d..8f2c1a6a 100644 --- a/src/Lumina.Presentation.Api/Common/HealthChecks/DatabaseHealthCheck.cs +++ b/src/Lumina.Presentation.Api/Common/HealthChecks/DatabaseHealthCheck.cs @@ -29,7 +29,7 @@ public class DatabaseHealthCheck : IHealthCheck /// Checks whether the database can be reached. /// /// The health check context. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation, containing the health check result. public virtual async Task CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken) { diff --git a/src/Lumina.Presentation.Web/Common/HealthChecks/ApiReachabilityHealthCheck.cs b/src/Lumina.Presentation.Web/Common/HealthChecks/ApiReachabilityHealthCheck.cs index 496e1493..a9d8ca7a 100644 --- a/src/Lumina.Presentation.Web/Common/HealthChecks/ApiReachabilityHealthCheck.cs +++ b/src/Lumina.Presentation.Web/Common/HealthChecks/ApiReachabilityHealthCheck.cs @@ -33,7 +33,7 @@ public class ApiReachabilityHealthCheck : IHealthCheck /// Checks whether the remote API is reachable by probing its readiness endpoint. /// /// The health check context. - /// Token to monitor for cancellation requests. + /// Cancellation token that can be used to stop the execution. /// A task that represents the asynchronous operation, containing the health check result. public virtual async Task CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken) { diff --git a/tests/Common/Lumina.Infrastructure.Fixtures/Common/Setup/StubHttpMessageHandler.cs b/tests/Common/Lumina.Infrastructure.Fixtures/Common/Setup/StubHttpMessageHandler.cs index fc701d23..564e0679 100644 --- a/tests/Common/Lumina.Infrastructure.Fixtures/Common/Setup/StubHttpMessageHandler.cs +++ b/tests/Common/Lumina.Infrastructure.Fixtures/Common/Setup/StubHttpMessageHandler.cs @@ -43,7 +43,7 @@ internal sealed class StubHttpMessageHandler : HttpMessageHandler /// Returns a response with the configured status code and body. /// /// The request, which is ignored. - /// Cancellation token that can be used to cancel the operation. + /// Cancellation token that can be used to stop the execution. /// The configured response. protected override Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) {