System.Runtime.Remoting.Messaging.DisposeSink.SyncProcessMessage C# (CSharp) Method

SyncProcessMessage() public method

public SyncProcessMessage ( IMessage reqMsg ) : IMessage
reqMsg IMessage
return IMessage
        public virtual IMessage SyncProcessMessage(IMessage reqMsg)
        {
            IMessage replyMsg = null;
            try{
                if (_replySink != null)
                {
                    replyMsg = _replySink.SyncProcessMessage(reqMsg);
                }
            }
            finally{
                // call dispose on the object now!
                _iDis.Dispose();
            }
            return replyMsg;
        }