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