System.Runtime.Remoting.Messaging.MethodResponse.SetLogicalCallContext C# (CSharp) Method

SetLogicalCallContext() private method

private SetLogicalCallContext ( LogicalCallContext ctx ) : LogicalCallContext
ctx LogicalCallContext
return LogicalCallContext
        internal LogicalCallContext SetLogicalCallContext(LogicalCallContext ctx)
        {
            LogicalCallContext old=callContext;
            callContext=ctx;
            return old;
        }

Usage Example

Exemplo n.º 1
0
        internal override void SetSpecialKey(int keyNum, object value)
        {
            ReturnMessage  message  = this._crmsg as ReturnMessage;
            MethodResponse response = this._crmsg as MethodResponse;

            switch (keyNum)
            {
            case 0:
                if (message == null)
                {
                    if (response == null)
                    {
                        throw new RemotingException(Environment.GetResourceString("Remoting_Message_BadType"));
                    }
                    response.Uri = (string)value;
                    return;
                }
                message.Uri = (string)value;
                return;

            case 1:
                if (message == null)
                {
                    if (response == null)
                    {
                        throw new RemotingException(Environment.GetResourceString("Remoting_Message_BadType"));
                    }
                    response.SetLogicalCallContext((LogicalCallContext)value);
                    return;
                }
                message.SetLogicalCallContext((LogicalCallContext)value);
                return;
            }
            throw new RemotingException(Environment.GetResourceString("Remoting_Default"));
        }
All Usage Examples Of System.Runtime.Remoting.Messaging.MethodResponse::SetLogicalCallContext