Class EnabledServiceBehaviorRuleBase<TServiceContract>
Base class for behavior rules controlling the enabled state of services.
It applyes for services implementing the contract TServiceContract
.
Inheritance
System.Object
EnabledServiceBehaviorRuleBase<TServiceContract>
Implements
IEnabledServiceBehaviorRule<TServiceContract>
IBehaviorRule<IServiceBehaviorContext<TServiceContract>>
Inherited Members
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.Services.Behaviors
Assembly: Kephas.Core.dll
Syntax
public abstract class EnabledServiceBehaviorRuleBase<TServiceContract> : BehaviorRuleBase<IServiceBehaviorContext<TServiceContract>, bool>, ILoggable, IEnabledServiceBehaviorRule<TServiceContract>, IBehaviorRule<IServiceBehaviorContext<TServiceContract>, bool>, IBehaviorRule<IServiceBehaviorContext<TServiceContract>>, IEnabledServiceBehaviorRule, IBehaviorRule<IContext, bool>, IBehaviorRule<IContext>, IBehaviorRuleFlowControl
Type Parameters
Name | Description |
---|---|
TServiceContract | Type of the service contract. |
Explicit Interface Implementations
| Improve this Doc View SourceIBehaviorRule<IContext, Boolean>.GetValue(IContext)
Gets the behavior value asynchronously.
Declaration
IBehaviorValue<bool> IBehaviorRule<IContext, bool>.GetValue(IContext context)
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The context. |
Returns
Type | Description |
---|---|
IBehaviorValue<System.Boolean> | A promise of the behavior value. |
IBehaviorRule<IContext>.CanApply(IContext)
Gets a value indicating whether the rule may be applied or not.
Declaration
bool IBehaviorRule<IContext>.CanApply(IContext context)
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The context. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the rule may be applied or not. |
IBehaviorRule<IContext>.GetValue(IContext)
Gets the behavior value.
Declaration
IBehaviorValue IBehaviorRule<IContext>.GetValue(IContext context)
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The context. |
Returns
Type | Description |
---|---|
IBehaviorValue | The behavior value. |