private LogicalCallContext FetchLogicalCallContext()
{
ReturnMessage message = this._crmsg as ReturnMessage;
if (message != null)
{
return(message.GetLogicalCallContext());
}
MethodResponse response = this._crmsg as MethodResponse;
if (response == null)
{
throw new RemotingException(Environment.GetResourceString("Remoting_Message_BadType"));
}
return(response.GetLogicalCallContext());
}