70 instantiations of DcpInstance
Aspire.Hosting (3)
Dcp\DcpNameGenerator.cs (3)
51
AddInstancesAnnotation(resource, [new
DcpInstance
(name, suffix, 0)]);
60
builder.Add(new
DcpInstance
(name, suffix, i));
67
AddInstancesAnnotation(resource, [new
DcpInstance
(name, suffix, 0)]);
Aspire.Hosting.Tests (67)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (16)
126
new
DcpInstance
("myresource-abc123", "abc123", 0),
127
new
DcpInstance
("myresource-def456", "def456", 1)
1418
new
DcpInstance
("myresource-abc123", "abc123", 0)
1457
new
DcpInstance
("myresource-abc123", "abc123", 0)
1496
new
DcpInstance
("myresource-abc123", "abc123", 0)
1530
new
DcpInstance
("myresource-abc123", "abc123", 0),
1531
new
DcpInstance
("myresource-def456", "def456", 1)
1565
new
DcpInstance
("myresource-abc123", "abc123", 0),
1566
new
DcpInstance
("myresource-def456", "def456", 1)
1988
new
DcpInstance
("myresource-abc123", "abc123", 0),
1989
new
DcpInstance
("myresource-def456", "def456", 1)
1994
new
DcpInstance
("otherresource-xyz789", "xyz789", 0)
2048
new
DcpInstance
("myresource-abc123", "abc123", 0),
2049
new
DcpInstance
("myresource-def456", "def456", 1)
2788
new
DcpInstance
("myresource-abc123", "abc123", 0),
2789
new
DcpInstance
("myresource-def456", "def456", 1)
Dashboard\DashboardServiceDataTerminalTests.cs (5)
81
new
DcpInstance
("myapp-aaa", "aaa", 0),
82
new
DcpInstance
("myapp-bbb", "bbb", 1),
83
new
DcpInstance
("myapp-ccc", "ccc", 2),
130
new
DcpInstance
("myapp-aaa", "aaa", 0),
131
new
DcpInstance
("myapp-bbb", "bbb", 1),
Dcp\DcpExecutorTests.cs (2)
11104
new
DcpInstance
("program-first", "first", 0),
11105
new
DcpInstance
("program-second", "second", 1)
Orchestrator\ApplicationOrchestratorTests.cs (8)
711
new
DcpInstance
("waiter-abc123", "abc123", 0),
712
new
DcpInstance
("waiter-def456", "def456", 1)
771
new
DcpInstance
("waiter-abc123", "abc123", 0),
772
new
DcpInstance
("waiter-def456", "def456", 1)
820
new
DcpInstance
("waiter-abc123", "abc123", 0),
821
new
DcpInstance
("waiter-def456", "def456", 1)
873
new
DcpInstance
("waiter-abc123", "abc123", 0),
874
new
DcpInstance
("waiter-def456", "def456", 1)
ResourceCommandServiceTests.cs (17)
56
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
57
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
97
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
116
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
117
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
141
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
178
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
179
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
218
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
219
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
283
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
284
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
314
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
315
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1),
316
new
DcpInstance
("myResource-ijklwxyz", "ijklwxyz", 2)
1715
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
1716
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
ResourceExtensionsTests.cs (4)
628
new
DcpInstance
("test-abc123", "abc123", 0),
629
new
DcpInstance
("test-def456", "def456", 1)
664
new
DcpInstance
("test-abc123", "abc123", 0),
665
new
DcpInstance
("test-def456", "def456", 1)
ResourceLoggerServiceTests.cs (4)
220
testResource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("instance0", "0", 0), new
DcpInstance
("instance1", "1", 1)]));
261
testResource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("instance0", "0", 0), new
DcpInstance
("instance1", "1", 1)]));
ResourceNotificationTests.cs (7)
636
new
DcpInstance
("resource-abc123", "abc123", 0),
637
new
DcpInstance
("resource-def456", "def456", 1)
680
resource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("resource-abc123", "abc123", 0)]));
750
new
DcpInstance
("resource-abc123", "abc123", 0),
751
new
DcpInstance
("resource-def456", "def456", 1)
785
new
DcpInstance
("dependency-abc123", "abc123", 0),
786
new
DcpInstance
("dependency-def456", "def456", 1)
WaitForTests.cs (4)
640
new
("test0", "", 0),
new
("test1", "", 1)
693
new
("test0", "", 0),
new
("test1", "", 1)
16 references to DcpInstance
Aspire.Hosting (14)
ApplicationModel\DcpInstancesAnnotation.cs (2)
11
internal class DcpInstancesAnnotation(ImmutableArray<
DcpInstance
> instances) : IResourceAnnotation
13
public ImmutableArray<
DcpInstance
> Instances => instances;
ApplicationModel\ResourceExtensions.cs (2)
1166
internal static string GetOtelServiceInstanceId(this IResource resource,
DcpInstance
instance)
1292
internal static bool TryGetInstances(this IResource resource, out ImmutableArray<
DcpInstance
> instances)
ApplicationModel\TerminalResourceSnapshotProperties.cs (1)
86
foreach (
var
instance in instances.Instances)
Dcp\ContainerCreator.cs (2)
91
var
containerObjectInstance = DcpExecutor.GetDcpInstance(container, instanceIndex: 0);
185
var
exeInstance = DcpExecutor.GetDcpInstance(containerExecutable, instanceIndex: 0);
Dcp\DcpExecutor.cs (2)
1116
internal static
DcpInstance
GetDcpInstance(IResource resource, int instanceIndex)
1123
foreach (
var
instance in instances)
Dcp\DcpNameGenerator.cs (2)
56
var builder = ImmutableArray.CreateBuilder<
DcpInstance
>(replicas);
71
private static void AddInstancesAnnotation(IResource resource, ImmutableArray<
DcpInstance
> instances)
Dcp\ExecutableCreator.cs (3)
294
var
instance = DcpExecutor.GetDcpInstance(project, instanceIndex: i);
322
foreach (
var
instance in instances)
338
DcpInstance
instance,
Aspire.Hosting.Tests (2)
Dashboard\DashboardServiceDataTerminalTests.cs (1)
157
IReadOnlyList<
DcpInstance
>? dcpInstances = null)
Orchestrator\ApplicationOrchestratorTests.cs (1)
1117
foreach (
var
instance in instances)