1 write to _collector
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogCollector.LogEnumeration.cs (1)
93
_collector
= collector;
10 references to _collector
Microsoft.Extensions.Diagnostics.Testing (10)
Logging\FakeLogCollector.LogEnumeration.cs (10)
129
lock (
_collector
._records)
131
int currentVersion =
_collector
._recordCollectionVersion;
138
if (_index <
_collector
._records.Count)
140
Current =
_collector
._records[_index++];
146
waiter =
_collector
._logEnumerationSharedWaiter;
147
_collector
._waitingEnumeratorCount++;
157
lock (
_collector
._records)
160
_collector
._waitingEnumeratorCount > 0 // counter can be zero during the cancellation path
161
&& waiter ==
_collector
._logEnumerationSharedWaiter // makes sure we adjust the counter for the same shared waiting session
164
_collector
._waitingEnumeratorCount--;