31 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 (28)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (4)
41
new
DcpInstance
("myresource-abc123", "abc123", 0),
42
new
DcpInstance
("myresource-def456", "def456", 1)
326
new
DcpInstance
("myresource-abc123", "abc123", 0),
327
new
DcpInstance
("myresource-def456", "def456", 1)
ResourceCommandServiceTests.cs (12)
40
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
41
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
84
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
121
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
122
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
161
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
162
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
226
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
227
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
257
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
258
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1),
259
new
DcpInstance
("myResource-ijklwxyz", "ijklwxyz", 2)
ResourceExtensionsTests.cs (4)
539
new
DcpInstance
("test-abc123", "abc123", 0),
540
new
DcpInstance
("test-def456", "def456", 1)
575
new
DcpInstance
("test-abc123", "abc123", 0),
576
new
DcpInstance
("test-def456", "def456", 1)
ResourceLoggerServiceTests.cs (4)
219
testResource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("instance0", "0", 0), new
DcpInstance
("instance1", "1", 1)]));
260
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;
ApplicationModel\ResourceExtensions.cs (1)
1071
internal static bool TryGetInstances(this IResource resource, out ImmutableArray<
DcpInstance
> instances)
Dcp\DcpExecutor.cs (6)
1375
var
exeInstance = GetDcpInstance(containerExecutable, instanceIndex: 0);
1407
var
exeInstance = GetDcpInstance(executable, instanceIndex: 0);
1453
var
exeInstance = GetDcpInstance(project, instanceIndex: i);
1924
var
containerObjectInstance = GetDcpInstance(container, instanceIndex: 0);
1978
private static
DcpInstance
GetDcpInstance(IResource resource, int instanceIndex)
1985
foreach (
var
instance in instances)
Dcp\DcpNameGenerator.cs (2)
48
var builder = ImmutableArray.CreateBuilder<
DcpInstance
>(replicas);
58
private static void AddInstancesAnnotation(IResource resource, ImmutableArray<
DcpInstance
> instances)