1. Stylelabs.M.Sdk.Clients

Interface IScriptsClient

Contains functionality to execute scripts.

Namespace: StylelabsStylelabs.MSdkClients

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

TypeNameDescription
stringidentifierThe identifier of the script.
JTokenargumentsThe arguments to pass to the script.

Returns

TypeDescription
Task<>JTokenThe result of the script. If the script didn't set a result, null is returned.

Exceptions

TypeCondition
NotFoundExceptionThe script with the specified identifier could not be found.
ScriptExceptionSomething went wrong during the execution of the script.
If you have suggestions for improving this article, let us know!