46 references to CurrentContext
mscorlib (46)
system\runtime\remoting\activationservices.cs (6)
100BCLDebug.Trace("REMOTE","Starting up activation service ",Thread.CurrentContext); 256Context cliCtx = Thread.CurrentContext; 486Thread.CurrentContext); 593Thread.CurrentContext.GetClientContextChain(); 724Thread.CurrentContext.GetServerContextChain().SyncProcessMessage(reqMsg); 848if (Thread.CurrentContext != Context.DefaultContext)
system\runtime\remoting\context.cs (5)
644Context currCtx = Thread.CurrentContext; 682Thread.CurrentContext.DoCallBackGeneric(targetCtxID, ctxDel); 693IMessage retMsg = Thread.CurrentContext.GetClientContextChain().SyncProcessMessage(msgCall); 791Thread.CurrentContext.MyLocalStore.SetData(slot, data); 798return Thread.CurrentContext.MyLocalStore.GetData(slot);
system\runtime\remoting\crossappdomainchannel.cs (2)
423Message.DebugOut("#### : changed to Server Domain :: "+ (Thread.CurrentContext.InternalContextID).ToString("X") ); 467Message.DebugOut("#### : changed back to Client Domain " + (Thread.CurrentContext.InternalContextID).ToString("X"));
system\runtime\remoting\crosscontextchannel.cs (5)
270args[2] = Thread.CurrentContext; 287Thread.CurrentContext, 372args[2] = Thread.CurrentContext; 460|| (_srvID.ServerContext == Thread.CurrentContext), 465Thread.CurrentContext.NotifyDynamicSinks(
system\runtime\remoting\identityholder.cs (2)
282serverCtx = Thread.CurrentContext; 723"IdentityHolder.WeakenIdentity ",uri, " for context ", Thread.CurrentContext);
system\runtime\remoting\message.cs (4)
4963_sourceCtxID = Thread.CurrentContext.InternalContextID; 4988_sourceCtxID = Thread.CurrentContext.InternalContextID; 5068Contract.Assert(Thread.CurrentContext.InternalContextID 5154Thread.CurrentContext.InternalContextID == _targetCtxID,
system\runtime\remoting\realproxy.cs (3)
307SetStubData(this, Thread.CurrentContext.InternalContextID); 331if(iVal.Equals(Thread.CurrentContext.InternalContextID)) 594Thread.CurrentContext.IsThreadPoolAware);
system\runtime\remoting\remotingservices.cs (11)
102return(Thread.CurrentContext != serverID.ServerContext); 874BCLDebug.Trace("REMOTE", "RemotingServices.Disconnect ", obj, " for context ", Thread.CurrentContext); 912" for context " + Thread.CurrentContext + 1062Message.DebugOut("Entering Wrap for context " + Thread.CurrentContext + "\n"); 1176Context currContext = Thread.CurrentContext; 1217currContext = Thread.CurrentContext; 1243currContext = Thread.CurrentContext; 1573envoySink = Thread.CurrentContext.CreateEnvoyChain(tpOrObject); 1839Thread.CurrentContext.AppDomain, 1844ServerIdentity si = (ServerIdentity)MarshalByRefObject.GetIdentity(Thread.CurrentContext.AppDomain); 2324serverCtx = Thread.CurrentContext;
system\runtime\remoting\serveridentity.cs (1)
255BCLDebug.Assert(Thread.CurrentContext==_srvCtx,
system\runtime\remoting\synchronizeddispatch.cs (1)
711_ctx = Thread.CurrentContext;
system\runtime\remoting\terminatorsinks.cs (6)
200return Thread.CurrentContext.GetClientContextChain().SyncProcessMessage(reqMsg); 222msgCtrl = Thread.CurrentContext.GetClientContextChain().AsyncProcessMessage(reqMsg, replySink); 291Context ctx = Thread.CurrentContext; 417Context cliCtx = Thread.CurrentContext; 498Thread.CurrentContext.NotifyDynamicSinks( 589Context ctx = Thread.CurrentContext;