Class Result<T>
Provides generic version of Alternet.Common.Result
.
public class Result<T> : Result
Type Parameters
T
Type of object related to the action.
- Inheritance
-
Result<T>
Constructors
Properties
- Value
Gets an object that is result of the executed action.
Methods
- OnBoth(Func<Result, T>)
Executes specified function to update result of the executed action.
- OnFailure(Action<Result<T>>)
Executes specified function to update result of the executed action if result represents unsuccessful action.
- OnSuccess(Action<T>)
Executes specified function if result represents successful action.
- OnSuccess(Func<Result<T>>)
Executes specified function if result represents successful action.
- OnSuccess(Func<T, Result>)
Executes specified function if result represents successful action.
- OnSuccess(Func<T>)
Executes specified function if result represents successful action.