Click or drag to resize
PromiseT Class
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
Inheritance Hierarchy
SystemObject
  Innovator.ClientPromiseT

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

Type Parameters

T

The PromiseT type exposes the following members.

Constructors
  NameDescription
Public methodPromiseT
Initializes a new instance of the PromiseT class
Top
Properties
  NameDescription
Public propertyInvoker
Public propertyIsComplete
Indicates that the operation completed (either successfully or with an error)
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
Public methodCancelTargetC
Set the object to be canceled when the promise is canceled
Public methodDone
Callback to be executed when the promise completes successfully
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodExecuteCallbacks
Execute the stored callbacks for the given condition
Public methodFail
Callback to be executed when the promise encounters an error
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotify
Notify promise listeners of a change in the progres
Public methodProgress
Callback to be executed when the reported progress changes
Public methodReject
Mark the promise as having encountered an error
Public methodResolve
Mark the promise as having completed successfully providing the requested data
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIPromiseAlways
Callback to be executed when the promise completes regardless of whether an error occurred
Explicit interface implementationPrivate methodIPromiseDone
Callback to be executed when the promise completes successfully
Explicit interface implementationPrivate methodIPromiseFail
Callback to be executed when the promise encounters an error
Explicit interface implementationPrivate methodIPromiseProgress
Callback to be executed when the reported progress changes
Explicit interface implementationPrivate propertyIPromiseValue
The result of the promise. Only valid if IsResolved is true
Top
See Also