2 writes to _segments
Aspire.Hosting.Tests (2)
src\Shared\StableConnectionStringBuilder.cs (2)
41_segments = ParseSegments(_connectionString); 50_segments = [];
17 references to _segments
Aspire.Hosting.Tests (17)
src\Shared\StableConnectionStringBuilder.cs (17)
85return _segments[idx].Value; 145value = _segments[idx].Value ?? string.Empty; 159foreach (var seg in _segments) 232foreach (var segment in _segments) 250for (var i = 0; i < _segments.Count; i++) 252if (_segments[i].Key != null && KeyEquals(_segments[i].Key, key)) 262var seg = _segments[idx]; 269_segments.RemoveAt(idx); 272if (idx < _segments.Count) 274if (_segments[idx] == ConnectionStringSegment.SemiColon) 276_segments.RemoveAt(idx); 285if (_segments.Count > 0 && _segments[^1] != ConnectionStringSegment.SemiColon) 288_segments.Add(ConnectionStringSegment.SemiColon); 291_segments.Add(new ConnectionStringSegment(key, value)); 293_segments.Add(ConnectionStringSegment.SemiColon);