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: 0x0200032F RID: 815
[Token(Token = "0x200032F")]
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: 0x06001F0B RID: 7947 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001F0B")]
[Address(RVA = "0x2427900", Offset = "0x2426900", VA = "0x182427900")]
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: 0x17000463 RID: 1123
// (get) Token: 0x06001F0C RID: 7948 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06001F0D RID: 7949 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000463")]
public T Value
{
[Token(Token = "0x6001F0C")]
[Address(RVA = "0x2EFB910", Offset = "0x2EFA910", VA = "0x182EFB910")]
get
{
return null;
}
[Token(Token = "0x6001F0D")]
[Address(RVA = "0x2EFB9C0", Offset = "0x2EFA9C0", VA = "0x182EFB9C0")]
set
{
}
}
// Token: 0x06001F0E RID: 7950 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001F0E")]
[Address(RVA = "0x2EFB780", Offset = "0x2EFA780", VA = "0x182EFB780", Slot = "4")]
void IAsyncLocal.OnValueChanged(object previousValueObj, object currentValueObj, bool contextChanged)
{
}
// Token: 0x04001161 RID: 4449
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001161")]
private readonly Action> m_valueChangedHandler;
}
}