1 write to ReplicaId
Aspire.Hosting (1)
ApplicationModel\TerminalHostLayout.cs (1)
40
ReplicaId
= replicaId;
12 references to ReplicaId
Aspire.Hosting.Tests (12)
WithTerminalTests.cs (12)
536
Assert.Equal(host.Layout.
ReplicaId
, root.GetProperty("replicaId").GetString());
1244
Assert.NotEmpty(hosts[i].Layout.
ReplicaId
);
1245
Assert.StartsWith(hosts[i].Layout.
ReplicaId
+ ".", Path.GetFileName(hosts[i].Layout.ProducerUdsPath));
1246
Assert.StartsWith(hosts[i].Layout.
ReplicaId
+ ".", Path.GetFileName(hosts[i].Layout.ConsumerUdsPath));
1298
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.ProducerUdsPath));
1299
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.ConsumerUdsPath));
1300
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.ControlUdsPath));
1301
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.MetadataPath));
1305
Assert.True(seenReplicaIds.Add(host.Layout.
ReplicaId
), $"Duplicate replica id '{host.Layout.
ReplicaId
}'.");
1316
firstResource.Resource.Annotations.OfType<TerminalAnnotation>().Single().TerminalHosts).Layout.
ReplicaId
;
1322
secondResource.Resource.Annotations.OfType<TerminalAnnotation>().Single().TerminalHosts).Layout.
ReplicaId
;