| ConditionalEventBaseTEvent, TArgs Class |
Namespace: CMS.Base
public abstract class ConditionalEventBase<TEvent, TArgs> : IConditionalEvent<TEvent> where TEvent : ConditionalEventBase<TEvent, TArgs> where TArgs : EventArgs
The ConditionalEventBaseTEvent, TArgs type exposes the following members.
| Name | Description | |
|---|---|---|
| ConditionalEventBaseTEvent, TArgs |
Constructor
|
| Name | Description | |
|---|---|---|
| Conditions |
Condition for the handler execution. If set, must return true in order to execute the handler
| |
| Handler |
Handler to execute
| |
| Repeats |
Number of repeats of the action
| |
| TypedThis |
Strongly typed identity
|
| Name | Description | |
|---|---|---|
| Call(Action) |
Calls the given handler
| |
| Call(ActionTArgs) |
Calls the given handler
| |
| Call(EventHandlerTArgs) |
Calls the given handler
| |
| ExecuteHandler |
Executes the handler
| |
| GetHandler |
Implicit operator to convert to event handler
| |
| Repeat |
Sets the number of allowed calls to the event
| |
| When(FuncBoolean) |
Adds the condition to the conditional event
| |
| When(FuncTArgs, Boolean) |
Adds the condition to the conditional event
| |
| When(ConditionalEventBaseTEvent, TArgsConditionFunction) |
Adds the condition to the conditional event
|
| Name | Description | |
|---|---|---|
| (ConditionalEventBaseTEvent, TArgs to EventHandlerTArgs) |
Implicit operator to convert to event handler
|