Show / Hide Table of Contents

Interface IBehaviorRule<TContext>

Non-generic contract for defining a behavior rule.

Inherited Members
IBehaviorRuleFlowControl.ProcessingPriority
IBehaviorRuleFlowControl.IsEndRule
Namespace: Kephas.Behaviors
Assembly: Kephas.Core.dll
Syntax
public interface IBehaviorRule<in TContext> : IBehaviorRuleFlowControl
Type Parameters
Name Description
TContext

The context type.

Methods

| Improve this Doc View Source

CanApply(TContext)

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

Declaration
bool CanApply(TContext context)
Parameters
Type Name Description
TContext context

The context.

Returns
Type Description
System.Boolean

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

| Improve this Doc View Source

GetValue(TContext)

Gets the behavior value.

Declaration
IBehaviorValue GetValue(TContext context)
Parameters
Type Name Description
TContext context

The context.

Returns
Type Description
IBehaviorValue

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