31 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 (28)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (4)
41new DcpInstance("myresource-abc123", "abc123", 0), 42new DcpInstance("myresource-def456", "def456", 1) 326new DcpInstance("myresource-abc123", "abc123", 0), 327new DcpInstance("myresource-def456", "def456", 1)
ResourceCommandServiceTests.cs (12)
40new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 41new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 84new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0) 121new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 122new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 161new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 162new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 226new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 227new DcpInstance("myResource-efghwxyz", "efghwxyz", 1) 257new DcpInstance("myResource-abcdwxyz", "abcdwxyz", 0), 258new DcpInstance("myResource-efghwxyz", "efghwxyz", 1), 259new DcpInstance("myResource-ijklwxyz", "ijklwxyz", 2)
ResourceExtensionsTests.cs (4)
539new DcpInstance("test-abc123", "abc123", 0), 540new DcpInstance("test-def456", "def456", 1) 575new DcpInstance("test-abc123", "abc123", 0), 576new DcpInstance("test-def456", "def456", 1)
ResourceLoggerServiceTests.cs (4)
219testResource.Annotations.Add(new DcpInstancesAnnotation([new DcpInstance("instance0", "0", 0), new DcpInstance("instance1", "1", 1)])); 260testResource.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)
1375var exeInstance = GetDcpInstance(containerExecutable, instanceIndex: 0); 1407var exeInstance = GetDcpInstance(executable, instanceIndex: 0); 1453var exeInstance = GetDcpInstance(project, instanceIndex: i); 1924var containerObjectInstance = GetDcpInstance(container, instanceIndex: 0); 1978private static DcpInstance GetDcpInstance(IResource resource, int instanceIndex) 1985foreach (var instance in instances)
Dcp\DcpNameGenerator.cs (2)
48var builder = ImmutableArray.CreateBuilder<DcpInstance>(replicas); 58private static void AddInstancesAnnotation(IResource resource, ImmutableArray<DcpInstance> instances)