Show / Hide Table of Contents

Class AsyncBehaviorRuleBase<TContext, TValue>

Base class for asynchronous behavior rules.

Inheritance
System.Object
Loggable
BehaviorRuleFlowControlBase
AsyncBehaviorRuleBase<TContext, TValue>
Implements
ILoggable
IAsyncBehaviorRule<TContext, TValue>
IAsyncBehaviorRule<TContext>
IBehaviorRuleFlowControl
Inherited Members
BehaviorRuleFlowControlBase.ProcessingPriority
BehaviorRuleFlowControlBase.IsEndRule
BehaviorRuleFlowControlBase.ComputeIsEndRule()
BehaviorRuleFlowControlBase.ComputeProcessingPriority()
Loggable.Logger
Loggable.GetLogger()
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.Behaviors
Assembly: Kephas.Core.dll
Syntax
public abstract class AsyncBehaviorRuleBase<TContext, TValue> : BehaviorRuleFlowControlBase, ILoggable, IAsyncBehaviorRule<TContext, TValue>, IAsyncBehaviorRule<TContext>, IBehaviorRuleFlowControl
Type Parameters
Name Description
TContext

Type of the context.

TValue

Type of the value.

Methods

| Improve this Doc View Source

CanApplyAsync(TContext, CancellationToken)

Gets a value asynchronously indicating whether the rule may be applied or not.

Declaration
public virtual Task<bool> CanApplyAsync(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<System.Boolean>

A promise of a value indicating whether the rule may be applied or not.

| Improve this Doc View Source

GetValueAsync(TContext, CancellationToken)

Gets the behavior value asynchronously.

Declaration
public abstract 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.

Explicit Interface Implementations

| Improve this Doc View Source

IAsyncBehaviorRule<TContext>.GetValueAsync(TContext, CancellationToken)

Gets the behavior value asynchronously.

Declaration
Task<IBehaviorValue> IAsyncBehaviorRule<TContext>.GetValueAsync(TContext context, CancellationToken cancellationToken)
Parameters
Type Name Description
TContext context

The context.

System.Threading.CancellationToken cancellationToken

The cancellation token.

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

A promise of the behavior value.

Implements

ILoggable
IAsyncBehaviorRule<TContext, TValue>
IAsyncBehaviorRule<TContext>
IBehaviorRuleFlowControl

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