1 write to _collector
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogCollector.LogEnumeration.cs (1)
90
_collector
= collector;
10 references to _collector
Microsoft.Extensions.Diagnostics.Testing (10)
Logging\FakeLogCollector.LogEnumeration.cs (10)
126
lock (
_collector
._records)
128
int currentVersion =
_collector
._recordCollectionVersion;
135
if (_index <
_collector
._records.Count)
137
Current =
_collector
._records[_index++];
143
waiter =
_collector
._logEnumerationSharedWaiter;
144
_collector
._waitingEnumeratorCount++;
154
lock (
_collector
._records)
157
_collector
._waitingEnumeratorCount > 0 // counter can be zero during the cancellation path
158
&& waiter ==
_collector
._logEnumerationSharedWaiter // makes sure we adjust the counter for the same shared waiting session
161
_collector
._waitingEnumeratorCount--;