55 lines
2.0 KiB
C#
55 lines
2.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Represents ambient data that is local to a given asynchronous control flow, such as an asynchronous method.</summary>
|
|
/// <typeparam name="T">The type of the ambient data.</typeparam>
|
|
// Token: 0x0200032F RID: 815
|
|
[Token(Token = "0x200032F")]
|
|
public sealed class AsyncLocal<T> : IAsyncLocal
|
|
{
|
|
/// <summary>Instantiates an <see cref="T:System.Threading.AsyncLocal`1" /> local instance that receives change notifications.</summary>
|
|
/// <param name="valueChangedHandler">The delegate that is called whenever the current value changes on any thread.</param>
|
|
// Token: 0x06001F0B RID: 7947 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001F0B")]
|
|
[Address(RVA = "0x2427900", Offset = "0x2426900", VA = "0x182427900")]
|
|
public AsyncLocal(Action<AsyncLocalValueChangedArgs<T>> valueChangedHandler)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the value of the ambient data.</summary>
|
|
/// <returns>The value of the ambient data. If no value has been set, the returned value is default(T).</returns>
|
|
// 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<AsyncLocalValueChangedArgs<T>> m_valueChangedHandler;
|
|
}
|
|
}
|