Interface ICommandsClient

Version: 4.0

Contains functionality to execute commands in Sitecore Content Hub.

Namespace: StylelabsStylelabs.MSdkClients
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface ICommandsClient

Methods

ExecuteCommandAsync(string, string, JObject)

Executes an Sitecore Content Hub command.

Declaration
RequestResponse
Task<JToken> ExecuteCommandAsync(string @namespace, string command, JObject arguments = null)
Parameters
TypeNameDescription
stringnamespace

The name of the folder containing the command.

stringcommand

The name of the command.

JObjectarguments

The arguments of the command. If the command has no arguments, null can be specified.

Returns
TypeDescription
Task<>JToken

The result of the command. If the command has no result, null is returned.

Exceptions
TypeCondition
NotFoundException

The specified command cannot be found.

Do you have some feedback for us?

If you have suggestions for improving this article,