Table of Contents

Interface IJsPromise

Namespace
DotNetBrowser.Js
Assembly
DotNetBrowser.dll

The JavaScript Promise.

public interface IJsPromise : IJsObject, IAutoDisposable
Inherited Members
Extension Methods

Remarks

The IJsPromise interface can be used to register .NET delegates as Promise handlers.

Methods

Catch(Action<object>)

Appends the rejection handler to the promise.

Catch(Func<object, object>)

Appends the rejection handler to the promise.

Finally(Action<object>)

Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).

Finally(Func<object, object>)

Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).

Then(Action<object>, Action<object>)

Appends fulfillment and rejection handlers to the promise.

Then(Func<object, object>, Func<object, object>)

Appends fulfillment and rejection handlers to the promise.