4 writes to Observers
System.Threading.Tasks.Dataflow (4)
Base\DataflowBlock.cs (4)
2330
_observersState.
Observers
= _observersState.Observers.Add(observer);
2337
_observersState.
Observers
= ImmutableArray<IObserver<TOutput>>.Empty;
2380
currentState.
Observers
= currentState.Observers.Remove(observer);
2567
Observers
= ImmutableArray<IObserver<TOutput>>.Empty;
10 references to Observers
System.Threading.Tasks.Dataflow (10)
Base\DataflowBlock.cs (10)
2330
_observersState.Observers = _observersState.
Observers
.Add(observer);
2331
if (_observersState.
Observers
.Count == 1)
2367
if (!currentState.
Observers
.Contains(observer)) return;
2370
if (currentState.
Observers
.Count == 1)
2380
currentState.Observers = currentState.
Observers
.Remove(observer);
2397
ImmutableArray<IObserver<TOutput>> currentObservers = currentState.
Observers
;
2410
return $"Observers = {_observersState.
Observers
.Count}, Block = \"{(displaySource != null ? displaySource.Content : _source)}\"";
2432
public IObserver<TOutput>[] Observers { get { return _observable._observersState.
Observers
.ToArray(); } }
2497
lock (Observable._SubscriptionLock) currentObservers =
Observers
;
2565
currentObservers =
Observers
;