23 instantiations of DcpInstance
Aspire.Hosting (3)
Dcp\DcpNameGenerator.cs (3)
38
AddInstancesAnnotation(resource, [new
DcpInstance
(name, suffix, 0)]);
43
AddInstancesAnnotation(resource, [new
DcpInstance
(name, suffix, 0)]);
52
builder.Add(new
DcpInstance
(name, suffix, i));
Aspire.Hosting.Tests (20)
ResourceCommandServiceTests.cs (12)
39
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
40
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
83
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
120
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
121
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
160
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
161
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
225
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
226
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
256
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
257
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1),
258
new
DcpInstance
("myResource-ijklwxyz", "ijklwxyz", 2)
ResourceLoggerServiceTests.cs (4)
218
testResource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("instance0", "0", 0), new
DcpInstance
("instance1", "1", 1)]));
259
testResource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("instance0", "0", 0), new
DcpInstance
("instance1", "1", 1)]));
WaitForTests.cs (4)
640
new
("test0", "", 0),
new
("test1", "", 1)
693
new
("test0", "", 0),
new
("test1", "", 1)
11 references to DcpInstance
Aspire.Hosting (11)
ApplicationModel\DcpInstancesAnnotation.cs (2)
11
internal class DcpInstancesAnnotation(ImmutableArray<
DcpInstance
> instances) : IResourceAnnotation
13
public ImmutableArray<
DcpInstance
> Instances => instances;
Dcp\DcpExecutor.cs (6)
1254
var
exeInstance = GetDcpInstance(containerExecutable, instanceIndex: 0);
1286
var
exeInstance = GetDcpInstance(executable, instanceIndex: 0);
1332
var
exeInstance = GetDcpInstance(project, instanceIndex: i);
1803
var
containerObjectInstance = GetDcpInstance(container, instanceIndex: 0);
1857
private static
DcpInstance
GetDcpInstance(IResource resource, int instanceIndex)
1864
foreach (
var
instance in replicaAnnotation.Instances)
Dcp\DcpNameGenerator.cs (2)
48
var builder = ImmutableArray.CreateBuilder<
DcpInstance
>(replicas);
58
private static void AddInstancesAnnotation(IResource resource, ImmutableArray<
DcpInstance
> instances)
DistributedApplication.cs (1)
615
foreach (
var
instance in dcpInstancesAnnotation.Instances)