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