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