Class ResolverTurn<T>
- Namespace
- MarymoorStudios.Core.Promises
- Assembly
- MarymoorStudios.Core.Promises.dll
public abstract class ResolverTurn<T> : Turn
Type Parameters
T
- Inheritance
-
ResolverTurn<T>
- Derived
- Inherited Members
Constructors
ResolverTurn()
protected ResolverTurn()
Methods
OnFailure(Exception)
Execute the error path when the outcome is a failure.
protected abstract void OnFailure(Exception ex)
Parameters
ex
ExceptionThe failed outcome.
OnSuccess(T)
Execute the success path when the outcome is a success.
protected abstract void OnSuccess(T value)
Parameters
value
TThe successful outcome.
ResetTurnState()
Allows the turn to be reused (after Run()).
protected void ResetTurnState()
Run()
protected override sealed void Run()