68 instantiations of DcpInstance
Aspire.Hosting (3)
Dcp\DcpNameGenerator.cs (3)
47
AddInstancesAnnotation(resource, [new
DcpInstance
(name, suffix, 0)]);
52
AddInstancesAnnotation(resource, [new
DcpInstance
(name, suffix, 0)]);
61
builder.Add(new
DcpInstance
(name, suffix, i));
Aspire.Hosting.Tests (65)
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),
Orchestrator\ApplicationOrchestratorTests.cs (8)
666
new
DcpInstance
("waiter-abc123", "abc123", 0),
667
new
DcpInstance
("waiter-def456", "def456", 1)
726
new
DcpInstance
("waiter-abc123", "abc123", 0),
727
new
DcpInstance
("waiter-def456", "def456", 1)
775
new
DcpInstance
("waiter-abc123", "abc123", 0),
776
new
DcpInstance
("waiter-def456", "def456", 1)
828
new
DcpInstance
("waiter-abc123", "abc123", 0),
829
new
DcpInstance
("waiter-def456", "def456", 1)
ResourceCommandServiceTests.cs (17)
55
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
56
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
96
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
115
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
116
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
140
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0)
177
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
178
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
217
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
218
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
282
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
283
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1)
313
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
314
new
DcpInstance
("myResource-efghwxyz", "efghwxyz", 1),
315
new
DcpInstance
("myResource-ijklwxyz", "ijklwxyz", 2)
1612
new
DcpInstance
("myResource-abcdwxyz", "abcdwxyz", 0),
1613
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)
590
new
DcpInstance
("resource-abc123", "abc123", 0),
591
new
DcpInstance
("resource-def456", "def456", 1)
634
resource.Annotations.Add(new DcpInstancesAnnotation([new
DcpInstance
("resource-abc123", "abc123", 0)]));
704
new
DcpInstance
("resource-abc123", "abc123", 0),
705
new
DcpInstance
("resource-def456", "def456", 1)
739
new
DcpInstance
("dependency-abc123", "abc123", 0),
740
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)
1157
internal static string GetOtelServiceInstanceId(this IResource resource,
DcpInstance
instance)
1283
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)
150
var
containerObjectInstance = DcpExecutor.GetDcpInstance(container, instanceIndex: 0);
277
var
exeInstance = DcpExecutor.GetDcpInstance(containerExecutable, instanceIndex: 0);
Dcp\DcpExecutor.cs (2)
1077
internal static
DcpInstance
GetDcpInstance(IResource resource, int instanceIndex)
1084
foreach (
var
instance in instances)
Dcp\DcpNameGenerator.cs (2)
57
var builder = ImmutableArray.CreateBuilder<
DcpInstance
>(replicas);
67
private static void AddInstancesAnnotation(IResource resource, ImmutableArray<
DcpInstance
> instances)
Dcp\ExecutableCreator.cs (3)
218
var
instance = DcpExecutor.GetDcpInstance(project, instanceIndex: i);
239
var
instance = DcpExecutor.GetDcpInstance(resource, instanceIndex: 0);
253
DcpInstance
instance,
Aspire.Hosting.Tests (2)
Dashboard\DashboardServiceDataTerminalTests.cs (1)
157
IReadOnlyList<
DcpInstance
>? dcpInstances = null)
Orchestrator\ApplicationOrchestratorTests.cs (1)
1072
foreach (
var
instance in instances)