Show / Hide Table of Contents

Interface IAsyncBehaviorRule<TContext, TValue>

Contract for defining an asynchronous behavior rule.

Inherited Members
IAsyncBehaviorRule<TContext>.CanApplyAsync(TContext, CancellationToken)
IBehaviorRuleFlowControl.ProcessingPriority
IBehaviorRuleFlowControl.IsEndRule
Namespace: Kephas.Behaviors
Assembly: Kephas.Core.dll
Syntax
public interface IAsyncBehaviorRule<in TContext, TValue> : IAsyncBehaviorRule<TContext>, IBehaviorRuleFlowControl
Type Parameters
Name Description
TContext

The context type.

TValue

The type of the behavior value.

Methods

| Improve this Doc View Source

GetValueAsync(TContext, CancellationToken)

Gets the behavior value asynchronously.

Declaration
Task<IBehaviorValue<TValue>> GetValueAsync(TContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
TContext context

The context.

System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IBehaviorValue<TValue>>

A promise of the behavior value.

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