4 instantiations of NodeAppResource
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
124var resource = new NodeAppResource(name, "node", appDirectory);
Aspire.Hosting.JavaScript.Tests (3)
NodeJsPublicApiTests.cs (3)
19var action = () => new NodeAppResource(name, command, workingDirectory); 36var action = () => new NodeAppResource(name, command, workingDirectory); 51var action = () => new NodeAppResource(name, command, workingDirectory);
13 references to NodeAppResource
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
1423var nodeAppTypeId = AtsTypeMapping.DeriveTypeId(typeof(Aspire.Hosting.JavaScript.NodeAppResource)); 1456Assert.Contains(expandedTypeIds, id => id.Contains(nameof(JavaScript.NodeAppResource), StringComparison.Ordinal));
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
117public static IResourceBuilder<NodeAppResource> AddNodeApp(this IDistributedApplicationBuilder builder, [ResourceName] string name, string appDirectory, string scriptPath) 124var resource = new NodeAppResource(name, "node", appDirectory); 948where T : NodeAppResource
Aspire.Hosting.JavaScript.Tests (7)
AddNodeAppTests.cs (6)
249var nodeResource = Assert.Single(appModel.Resources.OfType<NodeAppResource>()); 276var nodeResource = Assert.Single(appModel.Resources.OfType<NodeAppResource>()); 306var nodeResource = Assert.Single(appModel.Resources.OfType<NodeAppResource>());
NodeAppFixture.cs (1)
23public IResourceBuilder<NodeAppResource>? NodeAppBuilder { get; private set; }
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
151and not NodeAppResource;