Class DefaultAuthorizationScopeService
A default authorization scope service.
Inheritance
System.Object
DefaultAuthorizationScopeService
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Security.Authorization
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultAuthorizationScopeService : IAuthorizationScopeService
Constructors
| Improve this Doc View SourceDefaultAuthorizationScopeService(ICollection<IExportFactory<IAuthorizationScopeProvider, AppServiceMetadata>>)
Initializes a new instance of the DefaultAuthorizationScopeService class.
Declaration
public DefaultAuthorizationScopeService(ICollection<IExportFactory<IAuthorizationScopeProvider, AppServiceMetadata>> providerFactories)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.ICollection<IExportFactory<IAuthorizationScopeProvider, AppServiceMetadata>> | providerFactories | The provider factories. |
Methods
| Improve this Doc View SourceGetAuthorizationScopeAsync(IContext, CancellationToken)
Gets the authorization scope asynchronously.
Declaration
public Task<object> GetAuthorizationScopeAsync(IContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| IContext | context | The context. |
| System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Object> | An asynchronous result that yields the authorization scope. |