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