Show / Hide Table of Contents

Class BehaviorRuleBase<TContext, TValue>

Base class for behavior rules.

Inheritance
System.Object
Loggable
BehaviorRuleFlowControlBase
BehaviorRuleBase<TContext, TValue>
EnabledServiceBehaviorRuleBase<TServiceContract>
Implements
ILoggable
IBehaviorRule<TContext, TValue>
IBehaviorRule<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 BehaviorRuleBase<TContext, TValue> : BehaviorRuleFlowControlBase, ILoggable, IBehaviorRule<TContext, TValue>, IBehaviorRule<TContext>, IBehaviorRuleFlowControl
Type Parameters
Name Description
TContext

Type of the context.

TValue

Type of the value.

Methods

| Improve this Doc View Source

CanApply(TContext)

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

Declaration
public virtual 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
public abstract IBehaviorValue<TValue> GetValue(TContext context)
Parameters
Type Name Description
TContext context

The context.

Returns
Type Description
IBehaviorValue<TValue>

The behavior value.

Explicit Interface Implementations

| Improve this Doc View Source

IBehaviorRule<TContext>.GetValue(TContext)

Gets the behavior value.

Declaration
IBehaviorValue IBehaviorRule<TContext>.GetValue(TContext context)
Parameters
Type Name Description
TContext context

The context.

Returns
Type Description
IBehaviorValue

The behavior value.

Implements

ILoggable
IBehaviorRule<TContext, TValue>
IBehaviorRule<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