2 instantiations of Context
mscorlib (2)
system\runtime\remoting\activationservices.cs (1)
645serverContext = new Context();
system\runtime\remoting\context.cs (1)
208return new Context(CTX_DEFAULT_CONTEXT);
80 references to Context
mscorlib (80)
system\appdomain.cs (4)
45using Context = System.Runtime.Remoting.Contexts.Context; 308private Context _DefaultContext; 3344_DefaultContext = Context.CreateDefaultContext(); 3349internal Context GetDefaultContext()
system\runtime\remoting\activationservices.cs (6)
256Context cliCtx = Thread.CurrentContext; 313Context ctx, IConstructionCallMessage ctorMsg, Object[] attributes) 635Context serverContext = null; 848if (Thread.CurrentContext != Context.DefaultContext) 1129Context ctx, IConstructionCallMessage ctorMsg) 1685public virtual bool IsContextOK(Context ctx, IConstructionCallMessage msg)
system\runtime\remoting\context.cs (10)
196public static Context DefaultContext 206internal static Context CreateDefaultContext() 644Context currCtx = Thread.CurrentContext; 867public static bool RegisterDynamicProperty(IDynamicProperty prop, ContextBoundObject obj, Context ctx) 888fRegistered = Context.AddDynamicProperty(ctx, prop); 897public static bool UnregisterDynamicProperty(String name, ContextBoundObject obj, Context ctx) 921fUnregister = Context.RemoveDynamicProperty(ctx, name); 932internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop) 970internal static bool RemoveDynamicProperty(Context ctx, String name) 1144Context.ExecuteCallBackInEE(_privateData);
system\runtime\remoting\contextproperty.cs (6)
68bool IsContextOK(Context ctx, IConstructionCallMessage msg); 93bool IsNewContextOK(Context newCtx); 99void Freeze(Context newContext); 162public virtual bool IsNewContextOK(Context newCtx) 173public virtual void Freeze(Context newContext) 202Context ctx, IConstructionCallMessage ctorMsg)
system\runtime\remoting\crossappdomainchannel.cs (1)
106Context.DefaultContext.InternalContextID,
system\runtime\remoting\crosscontextchannel.cs (16)
67Context srvCtx = args[1] as Context; 177Context oldCtx = (Context) args[2]; 178Context srvCtx = (Context) args[3]; 262Context srvCtx = srvID.ServerContext; 307Context oldCtx = (Context) args[2]; 308Context srvCtx = (Context) args[3]; 363Context srvCtx = srvID.ServerContext; 405private Context _oldCtx; 414internal AsyncWorkItem(IMessageSink replySink, Context oldCtx) 420internal AsyncWorkItem(IMessage reqMsg, IMessageSink replySink, Context oldCtx, ServerIdentity srvID) 502Context srvCtx = This._srvID.ServerContext;
system\runtime\remoting\identityholder.cs (3)
67private static volatile Context _cachedDefaultContext = null; 75internal static Context DefaultContext 278Context serverCtx = null;
system\runtime\remoting\lifetimeservices.cs (2)
242public bool IsNewContextOK(Context newCtx) 251public void Freeze(Context newContext)
system\runtime\remoting\message.cs (2)
5082Context ctx = Thread.GetContextInternal(_targetCtxID); 5085ctx = Context.DefaultContext;
system\runtime\remoting\proxyattribute.cs (2)
75Context serverContext) 111public bool IsContextOK(Context ctx, IConstructionCallMessage msg)
system\runtime\remoting\remotingproxy.cs (2)
81Context currentContext, 333Context currentContext = currentThread.GetCurrentContextInternal();
system\runtime\remoting\remotingservices.cs (5)
428Context serverCtx = null; 1176Context currContext = Thread.CurrentContext; 2302contextId = Context.DefaultContext.InternalContextID; 2317internal static Context GetServerContext(MarshalByRefObject obj) 2319Context serverCtx = null;
system\runtime\remoting\serveridentity.cs (4)
27internal Context _srvCtx; 131internal ServerIdentity(MarshalByRefObject obj, Context serverCtx) : base(obj is ContextBoundObject) 153internal ServerIdentity(MarshalByRefObject obj, Context serverCtx, String uri) : 162internal Context ServerContext
system\runtime\remoting\synchronizeddispatch.cs (2)
181public override bool IsContextOK(Context ctx, IConstructionCallMessage msg) 690internal Context _ctx;
system\runtime\remoting\terminatorsinks.cs (7)
291Context ctx = Thread.CurrentContext; 341replyMsg = (IMessage) Thread.CurrentThread.InternalCrossContextCallback(Context.DefaultContext, xctxDel, args); 417Context cliCtx = Thread.CurrentContext; 449msgCtrl = (IMessageCtrl) Thread.CurrentThread.InternalCrossContextCallback(Context.DefaultContext, xctxDel, args); 482Context _cliCtx; // the context this call emerged from 484internal AsyncReplySink(IMessageSink replySink, Context cliCtx) 589Context ctx = Thread.CurrentContext;
system\runtime\remoting\urlattribute.cs (1)
62public override bool IsContextOK(Context ctx, IConstructionCallMessage msg)
system\threading\thread.cs (7)
136private Context m_Context; 1370public static Context CurrentContext 1380internal Context GetCurrentContextInternal() 1384m_Context = Context.DefaultContext; 1434internal static extern Context GetContextInternal(IntPtr id); 1439internal extern Object InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args); 1442internal Object InternalCrossContextCallback(Context ctx, InternalCrossContextDelegate ftnToCall, Object[] args)