Interface IBehaviorRule<TContext, TValue>
Contract for defining a behavior rule.
Inherited Members
Namespace: Kephas.Behaviors
Assembly: Kephas.Core.dll
Syntax
public interface IBehaviorRule<in TContext, out TValue> : IBehaviorRule<TContext>, IBehaviorRuleFlowControl
Type Parameters
Name | Description |
---|---|
TContext | The context type. |
TValue | The type of the behavior value. |
Methods
| Improve this Doc View SourceGetValue(TContext)
Gets the behavior value asynchronously.
Declaration
IBehaviorValue<TValue> GetValue(TContext context)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | The context. |
Returns
Type | Description |
---|---|
IBehaviorValue<TValue> | A promise of the behavior value. |