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