File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33// See the LICENSE file in the project root for more information.
44
55using DevProxy . Abstractions . Proxy ;
6- using System . Collections . ObjectModel ;
6+ using System . Collections . Concurrent ;
77
88namespace DevProxy . Proxy ;
99
@@ -13,5 +13,5 @@ public interface IProxyState
1313{
1414 Dictionary < string , object > GlobalData { get ; }
1515 bool IsRecording { get ; set ; }
16- Collection < RequestLog > RequestLogs { get ; }
16+ ConcurrentBag < RequestLog > RequestLogs { get ; }
1717}
Original file line number Diff line number Diff line change 44
55using DevProxy . Abstractions . Proxy ;
66using DevProxy . Abstractions . Utils ;
7- using System . Collections . ObjectModel ;
7+ using System . Collections . Concurrent ;
88
99namespace DevProxy . Proxy ;
1010
1111sealed class ProxyState : IProxyState
1212{
1313 public bool IsRecording { get ; set ; }
14- public Collection < RequestLog > RequestLogs { get ; set ; } = [ ] ;
14+ public ConcurrentBag < RequestLog > RequestLogs { get ; set ; } = [ ] ;
1515 public Dictionary < string , object > GlobalData { get ; set ; } = new ( ) {
1616 { ProxyUtils . ReportsKey , new Dictionary < string , object > ( ) }
1717 } ;
You can’t perform that action at this time.
0 commit comments