src/Interactive/Host/Interactive/Core/InteractiveHost.cs
/// <summary>
/// Asynchronously executes given code in the remote interactive session.
/// </summary>
/// <param name="path">The file to execute.</param>
/// <exception cref="ArgumentNullException"><paramref name="path"/> is null.</exception>
/// <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> ExecuteFileAsync(string path)
        {
            Contract.ThrowIfNull(path);
            return Async<RemoteExecutionResult>((service, operation) => service.ExecuteFile(operation, path));
        }
public Task < RemoteExecutionResult > ExecuteFileAsync ( string path ) { Contract . ThrowIfNull ( path ) ; return Async < RemoteExecutionResult > ( ( service , operation ) => service . ExecuteFile ( operation , path ) ) ; }
Asynchronously executes given code in the remote interactive session.
Asynchronously executes given code in the remote interactive session .
None
path
string
The file to execute.
The file 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 .