Search Results for

    Show / Hide Table of Contents

    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
    Exception exception

    The exception.

    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0