|
|
@ -4,8 +4,6 @@ |
|
|
* the license and the contributors participating to this project. |
|
|
* the license and the contributors participating to this project. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Immutable; |
|
|
using System.Collections.Immutable; |
|
|
@ -88,7 +86,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the scope corresponding to the identifier.
|
|
|
/// whose result returns the scope corresponding to the identifier.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<object> FindByIdAsync(string identifier, CancellationToken cancellationToken = default); |
|
|
ValueTask<object?> FindByIdAsync(string identifier, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves a scope using its name.
|
|
|
/// Retrieves a scope using its name.
|
|
|
@ -99,7 +97,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the scope corresponding to the specified name.
|
|
|
/// whose result returns the scope corresponding to the specified name.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<object> FindByNameAsync(string name, CancellationToken cancellationToken = default); |
|
|
ValueTask<object?> FindByNameAsync(string name, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves a list of scopes using their name.
|
|
|
/// Retrieves a list of scopes using their name.
|
|
|
@ -155,7 +153,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the description associated with the specified scope.
|
|
|
/// whose result returns the description associated with the specified scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetDescriptionAsync(object scope, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetDescriptionAsync(object scope, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the localized descriptions associated with an scope.
|
|
|
/// Retrieves the localized descriptions associated with an scope.
|
|
|
@ -177,7 +175,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the display name associated with the scope.
|
|
|
/// whose result returns the display name associated with the scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetDisplayNameAsync(object scope, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetDisplayNameAsync(object scope, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the localized display names associated with an scope.
|
|
|
/// Retrieves the localized display names associated with an scope.
|
|
|
@ -199,7 +197,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the unique identifier associated with the scope.
|
|
|
/// whose result returns the unique identifier associated with the scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetIdAsync(object scope, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetIdAsync(object scope, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the localized description associated with an scope
|
|
|
/// Retrieves the localized description associated with an scope
|
|
|
@ -212,7 +210,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the matching localized description associated with the scope.
|
|
|
/// whose result returns the matching localized description associated with the scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetLocalizedDescriptionAsync(object scope, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetLocalizedDescriptionAsync(object scope, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the localized description associated with an scope
|
|
|
/// Retrieves the localized description associated with an scope
|
|
|
@ -226,7 +224,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the matching localized description associated with the scope.
|
|
|
/// whose result returns the matching localized description associated with the scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetLocalizedDescriptionAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetLocalizedDescriptionAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the localized display name associated with an scope
|
|
|
/// Retrieves the localized display name associated with an scope
|
|
|
@ -239,7 +237,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the display name associated with the scope.
|
|
|
/// whose result returns the display name associated with the scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetLocalizedDisplayNameAsync(object scope, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetLocalizedDisplayNameAsync(object scope, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the localized display name associated with an scope
|
|
|
/// Retrieves the localized display name associated with an scope
|
|
|
@ -253,7 +251,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the display name associated with the scope.
|
|
|
/// whose result returns the display name associated with the scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetLocalizedDisplayNameAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetLocalizedDisplayNameAsync(object scope, CultureInfo culture, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the name associated with a scope.
|
|
|
/// Retrieves the name associated with a scope.
|
|
|
@ -264,7 +262,7 @@ namespace OpenIddict.Abstractions |
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// A <see cref="ValueTask{TResult}"/> that can be used to monitor the asynchronous operation,
|
|
|
/// whose result returns the name associated with the specified scope.
|
|
|
/// whose result returns the name associated with the specified scope.
|
|
|
/// </returns>
|
|
|
/// </returns>
|
|
|
ValueTask<string> GetNameAsync(object scope, CancellationToken cancellationToken = default); |
|
|
ValueTask<string?> GetNameAsync(object scope, CancellationToken cancellationToken = default); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Retrieves the resources associated with a scope.
|
|
|
/// Retrieves the resources associated with a scope.
|
|
|
|