Click or drag to resize
IPromise Interface
Represents a promise that a result 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 : ICancelable

The IPromise type exposes the following members.

Properties
  NameDescription
Public propertyIsRejected
Whether an error occurred causing the promise to be rejected
Public propertyIsResolved
Whether the promise completed successfully
Public propertyPercentComplete
The progress of the promise represented as an integer from 0 to 100
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
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
See Also