InvokeAsync(IProtectedContext, InvokeConfiguration)

Use this command to run a script in context of a given application API. The property ContextName determines the application the script is executed in. See Ansys.ACT.WorkBench.QCServices.ExecuteJournalCommand for example usage. Control returns immediately to the caller. Use this form for more control over the way the command/query is invoked. Use this form to pass a command or query context.

Declaration Syntax

public static CommandAsyncResult InvokeAsync(IProtectedContext context, InvokeConfiguration invokeConfiguration)

Parameters

context(IProtectedContext)

The context in which to invoke the command

invokeConfiguration(InvokeConfiguration)

Object containing configuration information to specify how the invoke should occur.