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