Class EnabledServiceBehaviorRuleBase<TServiceContract, TServiceImplementation>
Base class for behavior rules controlling the enabled state of the service TServiceImplementation
.
The service must implement the contract TServiceContract
.
Inheritance
System.Object
EnabledServiceBehaviorRuleBase<TServiceContract>
EnabledServiceBehaviorRuleBase<TServiceContract, TServiceImplementation>
Implements
IEnabledServiceBehaviorRule<TServiceContract>
IBehaviorRule<IServiceBehaviorContext<TServiceContract>>
Inherited Members
EnabledServiceBehaviorRuleBase<TServiceContract>.IBehaviorRule<IContext, Boolean>.GetValue(IContext)
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, TServiceImplementation> : EnabledServiceBehaviorRuleBase<TServiceContract>, ILoggable, IEnabledServiceBehaviorRule<TServiceContract>, IBehaviorRule<IServiceBehaviorContext<TServiceContract>, bool>, IBehaviorRule<IServiceBehaviorContext<TServiceContract>>, IEnabledServiceBehaviorRule, IBehaviorRule<IContext, bool>, IBehaviorRule<IContext>, IBehaviorRuleFlowControl where TServiceImplementation : TServiceContract
Type Parameters
Name | Description |
---|---|
TServiceContract | Type of the service contract. |
TServiceImplementation | Type of the service implementation. |
Methods
| Improve this Doc View SourceCanApply(IServiceBehaviorContext<TServiceContract>)
Base class for behavior rules controlling the enabled state of services
implementing the contract TServiceContract
.
Declaration
public override bool CanApply(IServiceBehaviorContext<TServiceContract> context)
Parameters
Type | Name | Description |
---|---|---|
IServiceBehaviorContext<TServiceContract> | context | The context. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the rule may be applied or not. |
Overrides
Kephas.Behaviors.BehaviorRuleBase<Kephas.Services.Behaviors.IServiceBehaviorContext<TServiceContract>, System.Boolean>.CanApply(Kephas.Services.Behaviors.IServiceBehaviorContext<TServiceContract>)