Class ThreadContext
Stores the thread context.
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Threading.Tasks
Assembly: Kephas.Core.dll
Syntax
public class ThreadContext : Expando, IExpando, IDynamicMetaObjectProvider, IIndexable
Constructors
| Improve this Doc View SourceThreadContext(IEnumerable<Action<ThreadContext>>, IEnumerable<Action<ThreadContext>>)
Initializes a new instance of the ThreadContext class.
Declaration
public ThreadContext(IEnumerable<Action<ThreadContext>> storeActions, IEnumerable<Action<ThreadContext>> restoreActions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Action<ThreadContext>> | storeActions | The actions called when information should be stored in the context. |
System.Collections.Generic.IEnumerable<System.Action<ThreadContext>> | restoreActions | The actions called when information should be restored from the context. |
Properties
| Improve this Doc View SourceCurrentCulture
Gets or sets the current culture.
Declaration
public CultureInfo CurrentCulture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | The current culture. |
CurrentUICulture
Gets or sets the current UI culture.
Declaration
public CultureInfo CurrentUICulture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | The current UI culture. |
Methods
| Improve this Doc View SourceRestore()
Restores information from the thread context.
Declaration
public void Restore()
Store()
Stores information in the thread context.
Declaration
public void Store()
Implements
System.Dynamic.IDynamicMetaObjectProvider