This static class is used as an easy way to create completion handlers. More...
Static Public Member Functions | |
| static Action< OperationResult > | IfSuccessIfFailure (Action successHandler, Action< OperationResult > failureHandler) |
| Create a completion handler with the format of : Action<OperationResult> that automatically checks if the operationResult is success or not. If the operationResult is success, it will execute the success handler, otherwise it will execute the failure handler with OperationResult as the input. More... | |
| static Action< OperationResult< T > > | IfSuccessIfFailure< T > (Action< T > successHandler, Action< OperationResult< T >> failureHandler) |
| Create a completion handler with the format of : Action<OperationResult<T>> that automatically checks if the operationResult is success or not. If operationResult is success, it will execute the success handler, otherwise it will execute the failure handler with OperationResult as the input. More... | |
| static Action< OperationResult > | IfSuccess (Action successHandler) |
| Create a completion handler with the format of : Action<OperationResult> that automatically checks if the operationResult is success or not. If the operation Result is success, it will execute the success handler, otherwise it will do nothing. More... | |
| static Action< OperationResult< T > > | IfSuccess< T > (Action< T > successHandler) |
| Create a completion handler with the format of : Action<OperationResult<T>> that automatically checks if the operationResult is success or not. If the operationResult is not success, it will execute the success handler, otherwise it will do nothing. More... | |
| static Action< OperationResult > | IfFailure (Action< OperationResult > failureHandler) |
| Create a completion handler with the format of : Action<OperationResult> that automatically checks if the operationResult is success or not. If the operationResult is not success, it will execute the failure handler, otherwise it will do nothing. More... | |
| static Action< OperationResult< T > > | IfFailure< T > (Action< OperationResult< T >> failureHandler) |
| Create a completion handler with the format of : Action<OperationResult<T>> that automatically checks if the operationResult is success or not. If the operationResult is not success, it will execute the failure handler, otherwise it will do nothing. More... | |
| static Action< OperationResult > | DoNothing () |
| Create a completion handler with the format of : Action<OperationResult> that does not perform anything. More... | |
| static Action< OperationResult< T > > | DoNothing< T > () |
| Create a completion handler with the format of : Action<OperationResult<T> that does not perform anything. More... | |
This static class is used as an easy way to create completion handlers.
|
static |
Create a completion handler with the format of : Action<OperationResult> that does not perform anything.
|
static |
Create a completion handler with the format of : Action<OperationResult<T> that does not perform anything.
|
static |
Create a completion handler with the format of : Action<OperationResult> that automatically checks if the operationResult is success or not.
If the operationResult is not success, it will execute the failure handler, otherwise it will do nothing.
| failureHandler | The Handler, with the OperationResult as a parameter, that will be executed in case of failure. |
|
static |
Create a completion handler with the format of : Action<OperationResult<T>> that automatically checks if the operationResult is success or not.
If the operationResult is not success, it will execute the failure handler, otherwise it will do nothing.
| failureHandler | The Handler, with the OperationResult as a parameter, that will be execute in case of failure. |
|
static |
Create a completion handler with the format of : Action<OperationResult> that automatically checks if the operationResult is success or not.
If the operation Result is success, it will execute the success handler, otherwise it will do nothing.
| successHandler | The Handler, with no parameter, that will be executed in case of success |
|
static |
Create a completion handler with the format of : Action<OperationResult<T>> that automatically checks if the operationResult is success or not.
If the operationResult is not success, it will execute the success handler, otherwise it will do nothing.
| successHandler | The Handler, with the return value as a parameter, that will be executed in case of success. |
|
static |
Create a completion handler with the format of : Action<OperationResult> that automatically checks if the operationResult is success or not.
If the operationResult is success, it will execute the success handler, otherwise it will execute the failure handler with OperationResult as the input.
| successHandler | The Handler, with no parameter, that will be executed in case of success |
| failureHandler | The Handler, with OperationResult as a parameter, that will be executed in case of failure |
|
static |
Create a completion handler with the format of : Action<OperationResult<T>> that automatically checks if the operationResult is success or not.
If operationResult is success, it will execute the success handler, otherwise it will execute the failure handler with OperationResult as the input.
| successHandler | The Handler, with the return value as a parameter, that will be executed in case of success |
| failureHandler | The Handler, with OperationResult as a parameter, that will be executed in case of failure |