Click or drag to resize
IPromiseT Interface
Represents a promise that a result of the specified type will be provided at some point in the future

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public interface IPromise<T> : IPromise, 
	ICancelable

Type Parameters

T

The IPromiseT type exposes the following members.

Properties
  NameDescription
Public propertyIsRejected
Whether an error occurred causing the promise to be rejected
(Inherited from IPromise.)
Public propertyIsResolved
Whether the promise completed successfully
(Inherited from IPromise.)
Public propertyPercentComplete
The progress of the promise represented as an integer from 0 to 100
(Inherited from IPromise.)
Public propertyValue
The result of the promise. Only valid if IsResolved is true
Top
Methods
  NameDescription
Public methodAlways
Callback to be executed when the promise completes regardless of whether an error occurred
Public methodCancel
Cancel the operation
(Inherited from ICancelable.)
Public methodDone(ActionObject)
Callback to be executed when the promise completes successfully
(Inherited from IPromise.)
Public methodDone(ActionT)
Callback to be executed when the promise completes successfully
Public methodFail
Callback to be executed when the promise encounters an error
Public methodProgress
Callback to be executed when the reported progress changes
Top
Extension Methods
  NameDescription
Public Extension MethodCancelledT
Attach a callback that runs when the promise is canceled
(Defined by Promises.)
Public Extension MethodContinueT, S
Continue a promise chain by acting on the previous promise's result and returning a new promise
(Defined by Promises.)
Public Extension MethodConvertT, S(FuncT, S)Overloaded.
Convert a promise using a simple transformation to go from one type to another
(Defined by Promises.)
Public Extension MethodConvertT, S(ActionT, PromiseS, ActionException, PromiseS)Overloaded.
Convert a promise by modifying the done/fail logic in addition to transforming the type.
(Defined by Promises.)
Public Extension MethodErrorT
Attach a callback that runs an error (other than a cancellation error) occurs
(Defined by Promises.)
Public Extension MethodFailOverT (Defined by Promises.)
Public Extension MethodToTaskT
Convert a promise to a .Net 4.0 Task for use with the async/await keywords
(Defined by Promises.)
Public Extension MethodWaitT
Block the current thread waiting for a promise to complete
(Defined by Promises.)
Public Extension MethodWithInvokerT
Changes the invokation logic of the promise (e.g. to trigger invokation on the UI thread)
(Defined by Promises.)
Top
See Also