logo
logo
  • Interface IScriptsClient

    Contains functionality to execute scripts.

    Namespace: Stylelabs.M.Sdk.Clients
    Assembly: Stylelabs.M.Sdk.dll
    Syntax
    public interface IScriptsClient

    Methods

    ExecuteActionScriptAsync(String, JToken)

    Executes specified action script.

    Declaration
    Task<JToken> ExecuteActionScriptAsync(string identifier, JToken arguments = null)
    Parameters
    Type Name Description
    System.String identifier

    The identifier of the script.

    JToken arguments

    The arguments to pass to the script.

    Returns
    Type Description
    Task<JToken>

    The result of the script. If the script didn't set a result, null is returned.

    Exceptions
    Type Condition
    NotFoundException

    The script with the specified identifier could not be found.

    ScriptException

    Something went wrong during the execution of the script.

    Can we improve this article ? Provide feedback