System.Runtime.Remoting.Channels.ADAsyncWorkItem.FinishAsyncWork C# (CSharp) Method

FinishAsyncWork() private method

private FinishAsyncWork ( Object stateIgnored ) : void
stateIgnored Object
return void
        internal virtual void FinishAsyncWork(Object stateIgnored)
        {
            // install the call context that the calling thread actually had onto
            // the threadPool thread.
            LogicalCallContext threadPoolCallCtx = CallContext.SetLogicalCallContext(_callCtx);
      
            IMessage retMsg = _nextSink.SyncProcessMessage(_reqMsg);

            // send the reply back to the replySink we were provided with   
            // note: replySink may be null for one-way calls.
            if (_replySink != null)
            {
                _replySink.SyncProcessMessage(retMsg);
            }
            CallContext.SetLogicalCallContext(threadPoolCallCtx);          
        }    
    }