System.Runtime.Remoting.Messaging.TransitionCall.TransitionCall C# (CSharp) Method

TransitionCall() private method

private TransitionCall ( IntPtr targetCtxID, CrossContextDelegate deleg ) : System
targetCtxID System.IntPtr
deleg CrossContextDelegate
return System
        internal TransitionCall(
            IntPtr targetCtxID, 
            CrossContextDelegate deleg)
        {
            BCLDebug.Assert(targetCtxID!=IntPtr.Zero, "bad target ctx for call back");
            _sourceCtxID = Thread.CurrentContext.InternalContextID;
            _targetCtxID = targetCtxID;
            _delegate = deleg;
            _targetDomainID = 0;
            _eeData = IntPtr.Zero;

            // We are going to another context in the same app domain
            _srvID = new ServerIdentity(
                null, 
                Thread.GetContextInternal(_targetCtxID));
            _ID = _srvID;
            _ID.RaceSetChannelSink(CrossContextChannel.MessageSink);
            _srvID.RaceSetServerObjectChain(this);
                
            //DBG Console.WriteLine("### TransitionCall ctor: " + Int32.Format(_sourceCtxID,"x") + ":" + Int32.Format(_targetCtxID,"x"));
        } // TransitionCall

Same methods

TransitionCall::TransitionCall ( IntPtr targetCtxID, IntPtr eeData, int targetDomainID ) : System
TransitionCall::TransitionCall ( SerializationInfo info, StreamingContext context ) : System