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)
1465
new
DcpInstance
("myresource-abc123", "abc123", 0)
1504
new
DcpInstance
("myresource-abc123", "abc123", 0)
1543
new
DcpInstance
("myresource-abc123", "abc123", 0)
1577
new
DcpInstance
("myresource-abc123", "abc123", 0),
1578
new
DcpInstance
("myresource-def456", "def456", 1)
1612
new
DcpInstance
("myresource-abc123", "abc123", 0),
1613
new
DcpInstance
("myresource-def456", "def456", 1)
2035
new
DcpInstance
("myresource-abc123", "abc123", 0),
2036
new
DcpInstance
("myresource-def456", "def456", 1)
2041
new
DcpInstance
("otherresource-xyz789", "xyz789", 0)
2095
new
DcpInstance
("myresource-abc123", "abc123", 0),
2096
new
DcpInstance
("myresource-def456", "def456", 1)
2835
new
DcpInstance
("myresource-abc123", "abc123", 0),
2836
new
DcpInstance
("myresource-def456", "def456", 1)
Dashboard\DashboardServiceDataTerminalTests.cs (5)
101
new
DcpInstance
("myapp-aaa", "aaa", 0),
102
new
DcpInstance
("myapp-bbb", "bbb", 1),
103
new
DcpInstance
("myapp-ccc", "ccc", 2),
150
new
DcpInstance
("myapp-aaa", "aaa", 0),
151
new
DcpInstance
("myapp-bbb", "bbb", 1),
Dcp\DcpExecutorTests.cs (2)
11310
new
DcpInstance
("program-first", "first", 0),
11311
new
DcpInstance
("program-second", "second", 1)
Orchestrator\ApplicationOrchestratorTests.cs (8)
1216
new
DcpInstance
("waiter-abc123", "abc123", 0),
1217
new
DcpInstance
("waiter-def456", "def456", 1)
1276
new
DcpInstance
("waiter-abc123", "abc123", 0),
1277
new
DcpInstance
("waiter-def456", "def456", 1)
1325
new
DcpInstance
("waiter-abc123", "abc123", 0),
1326
new
DcpInstance
("waiter-def456", "def456", 1)
1378
new
DcpInstance
("waiter-abc123", "abc123", 0),
1379
new
DcpInstance
("waiter-def456", "def456", 1)
ResourceCommandServiceTests.cs (17)
57
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
58
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
98
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
117
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
118
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
142
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
179
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
180
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
219
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
220
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
284
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
285
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
315
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
316
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1),
317
new
DcpInstance
("myResource-ijklwxyz", "ijklwxyz", 2)
1717
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
1718
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
ResourceExtensionsTests.cs (4)
630
new
DcpInstance
("test-abc123", "abc123", 0),
631
new
DcpInstance
("test-def456", "def456", 1)
666
new
DcpInstance
("test-abc123", "abc123", 0),
667
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)
803
new
DcpInstance
("resource-abc123", "abc123", 0),
804
new
DcpInstance
("resource-def456", "def456", 1)
847
resource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("resource-abc123", "abc123", 0)]));
917
new
DcpInstance
("resource-abc123", "abc123", 0),
918
new
DcpInstance
("resource-def456", "def456", 1)
952
new
DcpInstance
("dependency-abc123", "abc123", 0),
953
new
DcpInstance
("dependency-def456", "def456", 1)
WaitForTests.cs (4)
641
new
("test0", "", 0),
new
("test1", "", 1)
694
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)
87
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)
1128
internal static
DcpInstance
GetDcpInstance(IResource resource, int instanceIndex)
1135
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)
301
var
instance = DcpExecutor.GetDcpInstance(project, instanceIndex: i);
329
foreach (
var
instance in instances)
345
DcpInstance
instance,
Aspire.Hosting.Tests (2)
Dashboard\DashboardServiceDataTerminalTests.cs (1)
177
IReadOnlyList<
DcpInstance
>? dcpInstances = null)
Orchestrator\ApplicationOrchestratorTests.cs (1)
1622
foreach (
var
instance in instances)