22 references to AzureFunctionsProjectResource
Aspire.Hosting.Azure.Functions (11)
AzureFunctionsProjectResourceExtensions.cs (11)
14
/// Extension methods for <see cref="
AzureFunctionsProjectResource
"/>.
36
public static IResourceBuilder<
AzureFunctionsProjectResource
> AddAzureFunctionsProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name) where TProject : IProjectMetadata, new()
38
var
resource = new AzureFunctionsProjectResource(name);
76
foreach (
var
item in data.Model.Resources.OfType<
AzureFunctionsProjectResource
>())
155
private static IResourceBuilder<
AzureFunctionsProjectResource
> WithFunctionsHttpEndpoint(this IResourceBuilder<
AzureFunctionsProjectResource
> builder)
190
public static IResourceBuilder<
AzureFunctionsProjectResource
> WithHostStorage(this IResourceBuilder<
AzureFunctionsProjectResource
> builder, IResourceBuilder<AzureStorageResource> storage)
204
public static IResourceBuilder<
AzureFunctionsProjectResource
> WithReference<TSource>(this IResourceBuilder<
AzureFunctionsProjectResource
> destination, IResourceBuilder<TSource> source, string? connectionName = null)
Aspire.Hosting.Azure.Tests (11)
AzureFunctionsTests.cs (11)
25
resource is
AzureFunctionsProjectResource
&& resource.Name == "funcapp");
35
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
50
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
64
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
78
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());
92
var
functionsResource = Assert.Single(builder.Resources.OfType<
AzureFunctionsProjectResource
>());