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)
385
Assert.Equal(host.Layout.
ReplicaId
, root.GetProperty("replicaId").GetString());
1091
Assert.NotEmpty(hosts[i].Layout.
ReplicaId
);
1092
Assert.StartsWith(hosts[i].Layout.
ReplicaId
+ ".", Path.GetFileName(hosts[i].Layout.ProducerUdsPath));
1093
Assert.StartsWith(hosts[i].Layout.
ReplicaId
+ ".", Path.GetFileName(hosts[i].Layout.ConsumerUdsPath));
1145
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.ProducerUdsPath));
1146
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.ConsumerUdsPath));
1147
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.ControlUdsPath));
1148
Assert.StartsWith(host.Layout.
ReplicaId
+ ".", Path.GetFileName(host.Layout.MetadataPath));
1152
Assert.True(seenReplicaIds.Add(host.Layout.
ReplicaId
), $"Duplicate replica id '{host.Layout.
ReplicaId
}'.");
1163
firstResource.Resource.Annotations.OfType<TerminalAnnotation>().Single().TerminalHosts).Layout.
ReplicaId
;
1169
secondResource.Resource.Annotations.OfType<TerminalAnnotation>().Single().TerminalHosts).Layout.
ReplicaId
;