37 object hostContext = executionContextReader.IllogicalCallContext.HostContext;
38 if (hostContext ==
null)
40 hostContext = executionContextReader.LogicalCallContext.HostContext;
50 mutableExecutionContext.IllogicalCallContext.HostContext =
null;
51 mutableExecutionContext.LogicalCallContext.HostContext = value;
55 mutableExecutionContext.IllogicalCallContext.HostContext = value;
56 mutableExecutionContext.LogicalCallContext.HostContext =
null;
65 internal static LogicalCallContext SetLogicalCallContext(LogicalCallContext callCtx)
68 LogicalCallContext logicalCallContext = mutableExecutionContext.LogicalCallContext;
69 mutableExecutionContext.LogicalCallContext = callCtx;
70 return logicalCallContext;
80 mutableExecutionContext.LogicalCallContext.FreeNamedDataSlot(name);
81 mutableExecutionContext.IllogicalCallContext.FreeNamedDataSlot(name);
94 private static object IllogicalGetData(
string name)
109 return IllogicalGetData(name);
119 public static void SetData(
string name,
object data)
127 mutableExecutionContext.LogicalCallContext.FreeNamedDataSlot(name);
128 mutableExecutionContext.IllogicalCallContext.SetData(name, data);
139 mutableExecutionContext.IllogicalCallContext.FreeNamedDataSlot(name);
140 mutableExecutionContext.LogicalCallContext.SetData(name, data);
150 return logicalCallContext.InternalGetHeaders();
160 logicalCallContext.InternalSetHeaders(headers);
static Thread CurrentThread
Gets the currently running thread.
Marks an object that can propagate outside of an T:System.AppDomain in a T:System....
Defines the basic functionality of a principal object.
static object HostContext
Gets or sets the host context associated with the current thread.
static void SetHeaders(Header[] headers)
Sets the headers that are sent along with the method call.
static void LogicalSetData(string name, object data)
Stores a given object in the logical call context and associates it with the specified name.
Manages the execution context for the current thread. This class cannot be inherited.
static Header [] GetHeaders()
Returns the headers that are sent along with the method call.
Provides a set of properties that are carried with the execution code path. This class cannot be inhe...
Provides a set of properties that are carried with the execution code path during remote method calls...
static object GetData(string name)
Retrieves an object with the specified name from the T:System.Runtime.Remoting.Messaging....
Specifies that the class can be serialized.
static void FreeNamedDataSlot(string name)
Empties a data slot with the specified name.
static void SetData(string name, object data)
Stores a given object and associates it with the specified name.
static object LogicalGetData(string name)
Retrieves an object with the specified name from the logical call context.
Creates and controls a thread, sets its priority, and gets its status.