|
|
|
@ -641,7 +641,7 @@ namespace OpenIddict.Core |
|
|
|
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation,
|
|
|
|
/// whose result returns the first element returned when executing the query.
|
|
|
|
/// </returns>
|
|
|
|
public virtual ValueTask<TResult> GetAsync<TResult>( |
|
|
|
public virtual ValueTask<TResult?> GetAsync<TResult>( |
|
|
|
Func<IQueryable<TAuthorization>, IQueryable<TResult>> query, CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
if (query is null) |
|
|
|
@ -664,7 +664,7 @@ namespace OpenIddict.Core |
|
|
|
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation,
|
|
|
|
/// whose result returns the first element returned when executing the query.
|
|
|
|
/// </returns>
|
|
|
|
public virtual ValueTask<TResult> GetAsync<TState, TResult>( |
|
|
|
public virtual ValueTask<TResult?> GetAsync<TState, TResult>( |
|
|
|
Func<IQueryable<TAuthorization>, TState, IQueryable<TResult>> query, |
|
|
|
TState state, CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
@ -1245,11 +1245,11 @@ namespace OpenIddict.Core |
|
|
|
=> GetApplicationIdAsync((TAuthorization) authorization, cancellationToken); |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
ValueTask<TResult> IOpenIddictAuthorizationManager.GetAsync<TResult>(Func<IQueryable<object>, IQueryable<TResult>> query, CancellationToken cancellationToken) |
|
|
|
ValueTask<TResult?> IOpenIddictAuthorizationManager.GetAsync<TResult>(Func<IQueryable<object>, IQueryable<TResult>> query, CancellationToken cancellationToken) where TResult : default |
|
|
|
=> GetAsync(query, cancellationToken); |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
ValueTask<TResult> IOpenIddictAuthorizationManager.GetAsync<TState, TResult>(Func<IQueryable<object>, TState, IQueryable<TResult>> query, TState state, CancellationToken cancellationToken) |
|
|
|
ValueTask<TResult?> IOpenIddictAuthorizationManager.GetAsync<TState, TResult>(Func<IQueryable<object>, TState, IQueryable<TResult>> query, TState state, CancellationToken cancellationToken) where TResult : default |
|
|
|
=> GetAsync(query, state, cancellationToken); |
|
|
|
|
|
|
|
ValueTask<DateTimeOffset?> IOpenIddictAuthorizationManager.GetCreationDateAsync(object authorization, CancellationToken cancellationToken) |
|
|
|
|