Standardizes the cancellation token arguments

This commit is contained in:
BinaryAlley committed 2026-09-15 14:34:58 +03:00
1 parent 305f56702e
commit 5d2834b7fe
2 files changed
+2 -2

No files matched your search

@@ -79,7 +79,7 @@ public class FireScheduledJobCommandHandler : ICommandHandler<FireScheduledJobCo
return ApplicationErrors.Authorization.NotAuthorized;
// Get the scheduled job from the storage medium.
Result<ScheduledJobEntity?> getScheduledJobResult = await _unitOfWork.ScheduledJobRepository.GetByIdAsync(command.ScheduledJobId, cancellationToken).ConfigureAwait(false);
Result<ScheduledJobEntity?> getScheduledJobResult = await _unitOfWork.ScheduledJobRepository.GetByIdAsync(command.ScheduledJobId, cancellationToken: cancellationToken).ConfigureAwait(false);
if (getScheduledJobResult.IsFailure)
return getScheduledJobResult.Errors;
if (getScheduledJobResult.Value is null)
@@ -41,7 +41,7 @@ internal sealed class PluginSettingsStore : IPluginSettingsStore
/// <returns>The persisted settings keyed by setting key, or <see langword="null"/> when no settings were persisted for the plugin.</returns>
public async Task<IReadOnlyDictionary<string, string>?> GetSettingsAsync(Guid pluginId, CancellationToken cancellationToken)
{
Result<PluginEntity?> getPluginResult = await _unitOfWork.PluginRepository.GetByIdAsync(pluginId, cancellationToken).ConfigureAwait(false);
Result<PluginEntity?> getPluginResult = await _unitOfWork.PluginRepository.GetByIdAsync(pluginId, cancellationToken: cancellationToken).ConfigureAwait(false);
if (getPluginResult.IsFailure)
{
_logger.LogWarning("Failed to read the settings of the plugin with Id '{PluginId}': {Error}", pluginId, getPluginResult.FirstError.Description);