MsgPack.Rpc.Client.RpcClient.OnTranportShutdownComplete C# (CSharp) Method

OnTranportShutdownComplete() private method

private OnTranportShutdownComplete ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
		private void OnTranportShutdownComplete( object sender, EventArgs e )
		{
			var taskCompletionSource = Interlocked.CompareExchange( ref this._transportShutdownCompletionSource, null, this._transportShutdownCompletionSource );
			if ( taskCompletionSource != null )
			{
				var transport = sender as ClientTransport;
				transport.ShutdownCompleted -= this.OnTranportShutdownComplete;
				taskCompletionSource.SetResult( null );
			}
		}