System.Runtime.Remoting.Messaging.MethodResponse.GetLogicalCallContext C# (CSharp) Метод

GetLogicalCallContext() приватный Метод

private GetLogicalCallContext ( ) : LogicalCallContext
Результат LogicalCallContext
        internal LogicalCallContext GetLogicalCallContext()
        {
            if (callContext == null)
                callContext = new LogicalCallContext();
            return callContext;
        }

Usage Example

Пример #1
0
        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());
        }