From 5d2834b7fe69f82c7aeb308fe74404d6a6c9e386 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Tue, 15 Sep 2026 14:34:58 +0300 Subject: [PATCH] Standardizes the cancellation token arguments --- .../Commands/FireScheduledJob/FireScheduledJobCommandHandler.cs | 2 +- src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lumina.Application/Core/Scheduling/Commands/FireScheduledJob/FireScheduledJobCommandHandler.cs b/src/Lumina.Application/Core/Scheduling/Commands/FireScheduledJob/FireScheduledJobCommandHandler.cs index 86585082..755d2572 100644 --- a/src/Lumina.Application/Core/Scheduling/Commands/FireScheduledJob/FireScheduledJobCommandHandler.cs +++ b/src/Lumina.Application/Core/Scheduling/Commands/FireScheduledJob/FireScheduledJobCommandHandler.cs @@ -79,7 +79,7 @@ public class FireScheduledJobCommandHandler : ICommandHandler getScheduledJobResult = await _unitOfWork.ScheduledJobRepository.GetByIdAsync(command.ScheduledJobId, cancellationToken).ConfigureAwait(false); + Result getScheduledJobResult = await _unitOfWork.ScheduledJobRepository.GetByIdAsync(command.ScheduledJobId, cancellationToken: cancellationToken).ConfigureAwait(false); if (getScheduledJobResult.IsFailure) return getScheduledJobResult.Errors; if (getScheduledJobResult.Value is null) diff --git a/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs b/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs index 149acff8..75aa4ff8 100644 --- a/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs +++ b/src/Lumina.Infrastructure/Core/Plugins/PluginSettingsStore.cs @@ -41,7 +41,7 @@ internal sealed class PluginSettingsStore : IPluginSettingsStore /// The persisted settings keyed by setting key, or when no settings were persisted for the plugin. public async Task?> GetSettingsAsync(Guid pluginId, CancellationToken cancellationToken) { - Result getPluginResult = await _unitOfWork.PluginRepository.GetByIdAsync(pluginId, cancellationToken).ConfigureAwait(false); + Result 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);