3 instantiations of AzureFunctionsProjectResource
Aspire.Hosting.Azure.Functions (2)
AzureFunctionsProjectResourceExtensions.cs (2)
42
var resource = new
AzureFunctionsProjectResource
(name);
78
var resource = new
AzureFunctionsProjectResource
(name);
Aspire.Hosting.Azure.Tests (1)
PublicApiTests\FunctionsPublicApiTests.cs (1)
88
var action = () => new
AzureFunctionsProjectResource
(name);
46 references to AzureFunctionsProjectResource
Aspire.Hosting.Azure.Functions (15)
AzureFunctionsProjectResourceExtensions.cs (15)
13
/// Extension methods for <see cref="
AzureFunctionsProjectResource
"/>.
36
public static IResourceBuilder<
AzureFunctionsProjectResource
> AddAzureFunctionsProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name)
42
var
resource = new AzureFunctionsProjectResource(name);
70
public static IResourceBuilder<
AzureFunctionsProjectResource
> AddAzureFunctionsProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectPath)
78
var
resource = new AzureFunctionsProjectResource(name);
82
private static IResourceBuilder<
AzureFunctionsProjectResource
> AddAzureFunctionsProjectCore(
84
AzureFunctionsProjectResource
resource,
112
foreach (
var
item in data.Model.Resources.OfType<
AzureFunctionsProjectResource
>())
198
private static IResourceBuilder<
AzureFunctionsProjectResource
> WithFunctionsHttpEndpoint(this IResourceBuilder<
AzureFunctionsProjectResource
> builder)
262
public static IResourceBuilder<
AzureFunctionsProjectResource
> WithHostStorage(this IResourceBuilder<
AzureFunctionsProjectResource
> builder, IResourceBuilder<AzureStorageResource> storage)
279
public static IResourceBuilder<
AzureFunctionsProjectResource
> WithReference<TSource>(this IResourceBuilder<
AzureFunctionsProjectResource
> destination, IResourceBuilder<TSource> source, string? connectionName = null)
Aspire.Hosting.Azure.Tests (31)
AzureFunctionsTests.cs (30)
32
resource is
AzureFunctionsProjectResource
&& resource.Name == "funcapp");
49
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
77
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
100
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
114
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
128
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
212
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
226
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
256
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
554
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
571
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
585
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
602
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
626
resource is
AzureFunctionsProjectResource
&& resource.Name == "funcapp");
672
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
754
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
PublicApiTests\FunctionsPublicApiTests.cs (1)
42
IResourceBuilder<
AzureFunctionsProjectResource
> builder = null!;