src/Interactive/Host/Interactive/Core/InteractiveHost.cs
/// <summary>
/// Asynchronously executes given code in the remote interactive session.
/// </summary>
/// <param name="code">The code to execute.</param>
/// <remarks>
/// This method is thread safe but operations are sent to the remote process
/// asynchronously so tasks should be executed serially if order is important.
/// </remarks>
Asynchronously executes given code in the remote interactive session.
Asynchronously executes given code in the remote interactive session .
public Task<RemoteExecutionResult> ExecuteAsync(string code)
        {
            Contract.ThrowIfNull(code);
            return Async<RemoteExecutionResult>((service, operation) => service.Execute(operation, code));
        }
public Task < RemoteExecutionResult > ExecuteAsync ( string code ) { Contract . ThrowIfNull ( code ) ; return Async < RemoteExecutionResult > ( ( service , operation ) => service . Execute ( operation , code ) ) ; }
Asynchronously executes given code in the remote interactive session.
Asynchronously executes given code in the remote interactive session .
code
string
The code to execute.
The code to execute .
remarks
This method is thread safe but operations are sent to the remote process
asynchronously so tasks should be executed serially if order is important.
This method is thread safe but operations are sent to the remote process asynchronously so tasks should be executed serially if order is important .