using System; using Cpp2IlInjected; namespace System.Threading { /// Represents ambient data that is local to a given asynchronous control flow, such as an asynchronous method. /// The type of the ambient data. // Token: 0x02000315 RID: 789 [Token(Token = "0x2000315")] public sealed class AsyncLocal : IAsyncLocal { /// Instantiates an local instance that receives change notifications. /// The delegate that is called whenever the current value changes on any thread. // Token: 0x06001D0A RID: 7434 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001D0A")] [Address(RVA = "0x1A83E00", Offset = "0x1A82C00", VA = "0x181A83E00")] public AsyncLocal(Action> valueChangedHandler) { } /// Gets or sets the value of the ambient data. /// The value of the ambient data. If no value has been set, the returned value is default(T). // Token: 0x170003ED RID: 1005 // (get) Token: 0x06001D0B RID: 7435 RVA: 0x00002082 File Offset: 0x00000282 // (set) Token: 0x06001D0C RID: 7436 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x170003ED")] public T Value { [Token(Token = "0x6001D0B")] [Address(RVA = "0x28E5BF0", Offset = "0x28E49F0", VA = "0x1828E5BF0")] get { return null; } [Token(Token = "0x6001D0C")] [Address(RVA = "0x28E5CA0", Offset = "0x28E4AA0", VA = "0x1828E5CA0")] set { } } // Token: 0x06001D0D RID: 7437 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001D0D")] [Address(RVA = "0x28E5A60", Offset = "0x28E4860", VA = "0x1828E5A60", Slot = "4")] void IAsyncLocal.OnValueChanged(object previousValueObj, object currentValueObj, bool contextChanged) { } // Token: 0x040010A6 RID: 4262 [FieldOffset(Offset = "0x0")] [Token(Token = "0x40010A6")] private readonly Action> m_valueChangedHandler; } }