29 instantiations of DcpInstance
Aspire.Hosting (3)
Dcp\DcpNameGenerator.cs (3)
38AddInstancesAnnotation(resource, [new DcpInstance(name, suffix, 0)]); 43AddInstancesAnnotation(resource, [new DcpInstance(name, suffix, 0)]); 52builder.Add(new DcpInstance(name, suffix, i));
Aspire.Hosting.Tests (26)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (2)
39new DcpInstance("myresource-abc123", "abc123", 0), 40new DcpInstance("myresource-def456", "def456", 1)
ResourceCommandServiceTests.cs (12)
39new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 40new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 83new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0) 120new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 121new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 160new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 161new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 225new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 226new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 256new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 257new DcpInstance("myResource-efghwxyz", "efghwxyz", 1), 258new DcpInstance("myResource-ijklwxyz", "ijklwxyz", 2)
ResourceExtensionsTests.cs (4)
538new DcpInstance("test-abc123", "abc123", 0), 539new DcpInstance("test-def456", "def456", 1) 574new DcpInstance("test-abc123", "abc123", 0), 575new DcpInstance("test-def456", "def456", 1)
ResourceLoggerServiceTests.cs (4)
218testResource.Annotations.Add(new DcpInstancesAnnotation([new DcpInstance("instance0", "0", 0), new DcpInstance("instance1", "1", 1)])); 259testResource.Annotations.Add(new DcpInstancesAnnotation([new DcpInstance("instance0", "0", 0), new DcpInstance("instance1", "1", 1)]));
WaitForTests.cs (4)
640new("test0", "", 0), new("test1", "", 1) 693new("test0", "", 0), new("test1", "", 1)
11 references to DcpInstance
Aspire.Hosting (11)
ApplicationModel\DcpInstancesAnnotation.cs (2)
11internal class DcpInstancesAnnotation(ImmutableArray<DcpInstance> instances) : IResourceAnnotation 13public ImmutableArray<DcpInstance> Instances => instances;
ApplicationModel\ResourceExtensions.cs (1)
1071internal static bool TryGetInstances(this IResource resource, out ImmutableArray<DcpInstance> instances)
Dcp\DcpExecutor.cs (6)
1284var exeInstance = GetDcpInstance(containerExecutable, instanceIndex: 0); 1316var exeInstance = GetDcpInstance(executable, instanceIndex: 0); 1362var exeInstance = GetDcpInstance(project, instanceIndex: i); 1833var containerObjectInstance = GetDcpInstance(container, instanceIndex: 0); 1887private static DcpInstance GetDcpInstance(IResource resource, int instanceIndex) 1894foreach (var instance in instances)
Dcp\DcpNameGenerator.cs (2)
48var builder = ImmutableArray.CreateBuilder<DcpInstance>(replicas); 58private static void AddInstancesAnnotation(IResource resource, ImmutableArray<DcpInstance> instances)