Show / Hide Table of Contents

Interface IAuthorizationScopeProvider

Singleton application service contract for providing the authorization scope for a message.

Namespace: Kephas.Security.Authorization
Assembly: Kephas.Core.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true)]
public interface IAuthorizationScopeProvider

Methods

| Improve this Doc View Source

GetAuthorizationScopeAsync(IContext, CancellationToken)

Gets the authorization scope asynchronously.

Declaration
Task<(object scope, bool canResolve)> GetAuthorizationScopeAsync(IContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IContext context

The execution context.

System.Threading.CancellationToken cancellationToken

Optional. the cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.Object, System.Boolean>>

An asynchronous result that yields the authorization scope and a boolean value indicating whether the resolution was successful or not.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX