Interface IPromise
Interface for a promise that can be rejected.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public interface IPromise
Methods
CastAndResolve(Object)
Casts the result and resolves the promise. Will throw an exception if the cast fails.
Declaration
bool CastAndResolve(object result)
Parameters
Type | Name | Description |
---|---|---|
System.Object | result | The result. |
Returns
Type | Description |
---|---|
System.Boolean |
Reject(Exception)
Rejects the promise.
Declaration
bool Reject(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
Returns
Type | Description |
---|---|
System.Boolean |