UaClient/ServiceModel/Ua/Channels/CommunicationObject.cs
/// <summary>
/// Invoked during the transition of a communication object into the opening 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>
Invoked during the transition of a communication object into the opening state.
Invoked during the transition of a communication object into the opening state .
protected virtual async Task OnOpeningAsync(CancellationToken token = default(CancellationToken))
        {
            this.onOpeningCalled = true;
            await this.semaphore.WaitAsync(token).ConfigureAwait(false);
            try
            {
            }
            finally
            {
                this.semaphore.Release();
            }
            this.logger?.LogTrace($"Channel opening.");
            EventHandler opening = this.Opening;
            if (opening != null)
            {
                opening(this, EventArgs.Empty);
            }
        }
protected virtual async Task OnOpeningAsync ( CancellationToken token = default ( CancellationToken ) ) { this . onOpeningCalled = true ; await this . semaphore . WaitAsync ( token ) . ConfigureAwait ( false ) ; try { } finally { this . semaphore . Release ( ) ; } this . logger ? . LogTrace ( $" Channel opening. " ) ; EventHandler opening = this . Opening ; if ( opening != null ) { opening ( this , EventArgs . Empty ) ; } }
Invoked during the transition of a communication object into the opening state.
Invoked during the transition of a communication object into the opening 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 .