src/Interactive/Host/Interactive/Core/InteractiveHost.cs
/// <summary>
/// Asynchronously adds a reference to the set of available references for next submission.
/// </summary>
/// <param name="reference">The reference to add.</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 adds a reference to the set of available references for next submission.
Asynchronously adds a reference to the set of available references for next submission .
public Task<bool> AddReferenceAsync(string reference)
        {
            Contract.ThrowIfNull(reference);
            return Async<bool>((service, operation) => service.AddReference(operation, reference));
        }
public Task < bool > AddReferenceAsync ( string reference ) { Contract . ThrowIfNull ( reference ) ; return Async < bool > ( ( service , operation ) => service . AddReference ( operation , reference ) ) ; }
Asynchronously adds a reference to the set of available references for next submission.
Asynchronously adds a reference to the set of available references for next submission .
reference
string
The reference to add.
The reference to add .
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 .