System.Runtime.Remoting.Messaging.ConstructorCallMessage.GetLogicalCallContext C# (CSharp) Method

GetLogicalCallContext() private method

private GetLogicalCallContext ( ) : LogicalCallContext
return LogicalCallContext
        internal LogicalCallContext GetLogicalCallContext()
        {
            if (_message != null)
            {
                return _message.GetLogicalCallContext();
            }
            else
            {
                throw new InvalidOperationException(
                    Environment.GetResourceString(
                        "InvalidOperation_InternalState"));
            }
        }

Usage Example

Beispiel #1
0
        private LogicalCallContext FetchLogicalCallContext()
        {
            ConstructorCallMessage message = this._ccmsg as ConstructorCallMessage;

            if (message != null)
            {
                return(message.GetLogicalCallContext());
            }
            if (!(this._ccmsg is ConstructionCall))
            {
                throw new RemotingException(Environment.GetResourceString("Remoting_Message_BadType"));
            }
            return(((MethodCall)this._ccmsg).GetLogicalCallContext());
        }