File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/Servers/Kestrel/Core/src/Internal Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ IEnumerator IEnumerable.GetEnumerator()
97
97
return GetEnumerator ( ) ;
98
98
}
99
99
100
+ [ DebuggerDisplay ( "Count = {Count}" ) ]
101
+ [ DebuggerTypeProxy ( typeof ( PublicServerAddressesCollectionDebugView ) ) ]
100
102
private sealed class PublicServerAddressesCollection : ICollection < string >
101
103
{
102
104
private readonly ServerAddressesCollection _addressesCollection ;
@@ -169,6 +171,13 @@ private void ThrowIfReadonly()
169
171
}
170
172
}
171
173
174
+ private sealed class PublicServerAddressesCollectionDebugView ( PublicServerAddressesCollection publicCollection )
175
+ {
176
+ private readonly PublicServerAddressesCollection _collection = publicCollection ;
177
+ [ DebuggerBrowsable ( DebuggerBrowsableState . RootHidden ) ]
178
+ public string [ ] Items => _collection . ToArray ( ) ;
179
+ }
180
+
172
181
private sealed class ServerAddressesCollectionDebugView ( ServerAddressesCollection collection )
173
182
{
174
183
private readonly ServerAddressesCollection _collection = collection ;
You can’t perform that action at this time.
0 commit comments