mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Standardizes the cancellation token arguments
This commit is contained in:
1 parent
305f56702e
commit
5d2834b7fe
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -79,7 +79,7 @@ public class FireScheduledJobCommandHandler : ICommandHandler<FireScheduledJobCo
|
|||||||
return ApplicationErrors.Authorization.NotAuthorized;
|
return ApplicationErrors.Authorization.NotAuthorized;
|
||||||
|
|
||||||
// Get the scheduled job from the storage medium.
|
// 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)
|
if (getScheduledJobResult.IsFailure)
|
||||||
return getScheduledJobResult.Errors;
|
return getScheduledJobResult.Errors;
|
||||||
if (getScheduledJobResult.Value is null)
|
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>
|
/// <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)
|
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)
|
if (getPluginResult.IsFailure)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Failed to read the settings of the plugin with Id '{PluginId}': {Error}", pluginId, getPluginResult.FirstError.Description);
|
_logger.LogWarning("Failed to read the settings of the plugin with Id '{PluginId}': {Error}", pluginId, getPluginResult.FirstError.Description);
|
||||||
|
|||||||
Reference in new issue
Block a user