From f6197994df26fead8ba5c4044de2172c1252accb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 7 Sep 2017 01:49:09 +0200 Subject: [PATCH] Add the missing Async suffix to FindByLogoutRedirectUri() and FindByRedirectUri() --- .../Managers/OpenIddictApplicationManager.cs | 10 +++++----- .../Stores/IOpenIddictApplicationStore.cs | 4 ++-- .../Stores/OpenIddictApplicationStore.cs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs b/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs index bcef21ac..54e3e821 100644 --- a/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs +++ b/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs @@ -162,9 +162,9 @@ namespace OpenIddict.Core /// A that can be used to monitor the asynchronous operation, whose result /// returns the client applications corresponding to the specified post_logout_redirect_uri. /// - public virtual Task FindByLogoutRedirectUri(string address, CancellationToken cancellationToken) + public virtual Task FindByLogoutRedirectUriAsync(string address, CancellationToken cancellationToken) { - return Store.FindByLogoutRedirectUri(address, cancellationToken); + return Store.FindByLogoutRedirectUriAsync(address, cancellationToken); } /// @@ -176,9 +176,9 @@ namespace OpenIddict.Core /// A that can be used to monitor the asynchronous operation, whose result /// returns the client applications corresponding to the specified redirect_uri. /// - public virtual Task FindByRedirectUri(string address, CancellationToken cancellationToken) + public virtual Task FindByRedirectUriAsync(string address, CancellationToken cancellationToken) { - return Store.FindByRedirectUri(address, cancellationToken); + return Store.FindByRedirectUriAsync(address, cancellationToken); } /// @@ -527,7 +527,7 @@ namespace OpenIddict.Core { // Warning: SQL engines like Microsoft SQL Server are known to use case-insensitive lookups by default. // To ensure a case-sensitive comparison is used, string.Equals(Ordinal) is manually called here. - foreach (var application in await Store.FindByLogoutRedirectUri(address, cancellationToken)) + foreach (var application in await Store.FindByLogoutRedirectUriAsync(address, cancellationToken)) { // Note: the post_logout_redirect_uri must be compared using case-sensitive "Simple String Comparison". if (string.Equals(address, await Store.GetLogoutRedirectUriAsync(application, cancellationToken), StringComparison.Ordinal)) diff --git a/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs b/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs index 972340bf..64455d66 100644 --- a/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs +++ b/src/OpenIddict.Core/Stores/IOpenIddictApplicationStore.cs @@ -68,7 +68,7 @@ namespace OpenIddict.Core /// A that can be used to monitor the asynchronous operation, whose result /// returns the client applications corresponding to the specified post_logout_redirect_uri. /// - Task FindByLogoutRedirectUri(string address, CancellationToken cancellationToken); + Task FindByLogoutRedirectUriAsync(string address, CancellationToken cancellationToken); /// /// Retrieves all the applications associated with the specified redirect_uri. @@ -79,7 +79,7 @@ namespace OpenIddict.Core /// A that can be used to monitor the asynchronous operation, whose result /// returns the client applications corresponding to the specified redirect_uri. /// - Task FindByRedirectUri(string address, CancellationToken cancellationToken); + Task FindByRedirectUriAsync(string address, CancellationToken cancellationToken); /// /// Retrieves the client identifier associated with an application. diff --git a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs index e6aaa966..96d5e7ee 100644 --- a/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs +++ b/src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictApplicationStore.cs @@ -164,7 +164,7 @@ namespace OpenIddict.EntityFrameworkCore /// A that can be used to monitor the asynchronous operation, whose result /// returns the client applications corresponding to the specified post_logout_redirect_uri. /// - public virtual Task FindByLogoutRedirectUri(string address, CancellationToken cancellationToken) + public virtual Task FindByLogoutRedirectUriAsync(string address, CancellationToken cancellationToken) { return Applications.Where(application => application.LogoutRedirectUri == address).ToArrayAsync(cancellationToken); } @@ -178,7 +178,7 @@ namespace OpenIddict.EntityFrameworkCore /// A that can be used to monitor the asynchronous operation, whose result /// returns the client applications corresponding to the specified redirect_uri. /// - public virtual Task FindByRedirectUri(string address, CancellationToken cancellationToken) + public virtual Task FindByRedirectUriAsync(string address, CancellationToken cancellationToken) { return Applications.Where(application => application.RedirectUri == address).ToArrayAsync(cancellationToken); }