diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc829bc373..2381121c74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: - main pull_request: + workflow_dispatch: env: DOTNET_NOLOGO: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true diff --git a/src/AutoMapper/Licensing/LicenseAccessor.cs b/src/AutoMapper/Licensing/LicenseAccessor.cs index f01e2f0df2..e98fc7be06 100644 --- a/src/AutoMapper/Licensing/LicenseAccessor.cs +++ b/src/AutoMapper/Licensing/LicenseAccessor.cs @@ -71,7 +71,7 @@ private Claim[] ValidateKey(string licenseKey) ValidateLifetime = false }; - var validateResult = handler.ValidateTokenAsync(licenseKey, parms).Result; + var validateResult = Task.Run(() => handler.ValidateTokenAsync(licenseKey, parms)).GetAwaiter().GetResult(); if (!validateResult.IsValid) { _logger.LogCritical(validateResult.Exception, "Error validating the Lucky Penny software license key");