UaClient/ServiceModel/Ua/UaTcpDiscoveryService.cs
/// <summary>
/// Causes a communication object to transition from the created state into the opened state.
/// </summary>
/// <param name="token">The <see cref="T:System.Threading.CancellationToken" /> that notifies when the task should be canceled.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
Causes a communication object to transition from the created state into the opened state.
Causes a communication object to transition from the created state into the opened state .
public async Task OpenAsync(CancellationToken token = default(CancellationToken))
        {
            await this.semaphore.WaitAsync(token).ConfigureAwait(false);
            try
            {
                await this.innerChannel.OpenAsync(token).ConfigureAwait(false);
            }
            finally
            {
                this.semaphore.Release();
            }
        }
public async Task OpenAsync ( CancellationToken token = default ( CancellationToken ) ) { await this . semaphore . WaitAsync ( token ) . ConfigureAwait ( false ) ; try { await this . innerChannel . OpenAsync ( token ) . ConfigureAwait ( false ) ; } finally { this . semaphore . Release ( ) ; } }
Causes a communication object to transition from the created state into the opened state.
Causes a communication object to transition from the created state into the opened state .
A  representing the asynchronous operation.
A representing the asynchronous operation .
token
CancellationToken
The  that notifies when the task should be canceled.
The that notifies when the task should be canceled .