1 implementation of IAsyncLocal
mscorlib (1)
system\threading\asynclocal.cs (1)
42
public sealed class AsyncLocal<T> :
IAsyncLocal
47 references to IAsyncLocal
mscorlib (47)
system\threading\asynclocal.cs (36)
80
void
IAsyncLocal
.OnValueChanged(object previousValueObj, object currentValueObj, bool contextChanged)
125
bool TryGetValue(
IAsyncLocal
key, out object value);
126
IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent);
144
public static IAsyncLocalValueMap Create(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
156
public IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
165
public bool TryGetValue(
IAsyncLocal
key, out object value)
175
private readonly
IAsyncLocal
_key1;
178
public OneElementAsyncLocalValueMap(
IAsyncLocal
key, object value)
183
public IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
203
public bool TryGetValue(
IAsyncLocal
key, out object value)
221
private readonly
IAsyncLocal
_key1, _key2;
224
public TwoElementAsyncLocalValueMap(
IAsyncLocal
key1, object value1,
IAsyncLocal
key2, object value2)
230
public IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
252
public bool TryGetValue(
IAsyncLocal
key, out object value)
275
private readonly
IAsyncLocal
_key1, _key2, _key3;
278
public ThreeElementAsyncLocalValueMap(
IAsyncLocal
key1, object value1,
IAsyncLocal
key2, object value2,
IAsyncLocal
key3, object value3)
285
public IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
316
public bool TryGetValue(
IAsyncLocal
key, out object value)
345
private readonly KeyValuePair<
IAsyncLocal
, object>[] _keyValues;
350
_keyValues = new KeyValuePair<
IAsyncLocal
, object>[count];
353
internal void UnsafeStore(int index,
IAsyncLocal
key, object value)
356
_keyValues[index] = new KeyValuePair<
IAsyncLocal
, object>(key, value);
359
public IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
373
multi._keyValues[i] = new KeyValuePair<
IAsyncLocal
, object>(key, value);
412
multi._keyValues[_keyValues.Length] = new KeyValuePair<
IAsyncLocal
, object>(key, value);
418
foreach (KeyValuePair<
IAsyncLocal
, object> pair in _keyValues)
426
public bool TryGetValue(
IAsyncLocal
key, out object value)
428
foreach (KeyValuePair<
IAsyncLocal
, object> pair in _keyValues)
442
private sealed class ManyElementAsyncLocalValueMap : Dictionary<
IAsyncLocal
, object>, IAsyncLocalValueMap
446
public IAsyncLocalValueMap Set(
IAsyncLocal
key, object value, bool treatNullValueAsNonexistent)
456
foreach (KeyValuePair<
IAsyncLocal
, object> pair in this)
477
foreach (KeyValuePair<
IAsyncLocal
, object> pair in this)
490
foreach (KeyValuePair<
IAsyncLocal
, object> pair in this)
system\threading\executioncontext.cs (11)
522
private
IAsyncLocal
[] _localChangeNotifications;
641
public object GetLocalValue(
IAsyncLocal
local)
670
internal static object GetLocalValue(
IAsyncLocal
local)
676
internal static void SetLocalValue(
IAsyncLocal
local, object newValue, bool needChangeNotifications)
716
IAsyncLocal
[] newChangeNotifications = current._localChangeNotifications;
719
newChangeNotifications = new
IAsyncLocal
[1] { local };
738
IAsyncLocal
[] previousLocalChangeNotifications = (previous == null) ? null : previous._localChangeNotifications;
741
foreach (
IAsyncLocal
local in previousLocalChangeNotifications)
756
IAsyncLocal
[] currentLocalChangeNotifications = (current == null) ? null : current._localChangeNotifications;
761
foreach (
IAsyncLocal
local in currentLocalChangeNotifications)
1275
IAsyncLocal
[] localChangeNotifications = null;