22 instantiations of AzureResourceInfrastructure
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Tests (21)
297 references to AzureResourceInfrastructure
Aspire.Hosting.Azure (39)
AzureProvisioningResource.cs (12)
18public class AzureProvisioningResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
24public Action<AzureResourceInfrastructure> ConfigureInfrastructure { get; internal set; } = configureInfrastructure ?? throw new ArgumentNullException(nameof(configureInfrastructure));
36/// <param name="infra">The <see cref="AzureResourceInfrastructure"/> to add the existing resource into.</param>
38public virtual ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) => throw new NotImplementedException();
46var infra = roleAssignmentContext.Infrastructure;
81var infrastructure = new AzureResourceInfrastructure(this, Name);
121/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that will contain the <see cref="ProvisionableResource"/>.</param>
125public static T CreateExistingOrNewProvisionableResource<T>(AzureResourceInfrastructure infrastructure, Func<string, BicepValue<string>, T> createExisting, Func<AzureResourceInfrastructure, T> createNew)
167public static bool TryApplyExistingResourceAnnotation(IAzureResource aspireResource, AzureResourceInfrastructure infra, ProvisionableResource provisionableResource)
217private static BicepValue<string> CreateScopeExpression(AzureBicepResourceScope scope, AzureResourceInfrastructure infra)
269private void EnsureParametersAlign(AzureResourceInfrastructure infrastructure)
AzureProvisioningResourceExtensions.cs (18)
25public static IResourceBuilder<AzureProvisioningResource> AddAzureInfrastructure(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<AzureResourceInfrastructure> configureInfrastructure)
42public static IResourceBuilder<T> ConfigureInfrastructure<T>(this IResourceBuilder<T> builder, Action<AzureResourceInfrastructure> configure)
53/// Gets or creates a <see cref="KeyVaultSecret"/> resource in the specified <see cref="AzureResourceInfrastructure"/>
61/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> in which to locate or add the <see cref="KeyVaultSecret"/>.</param>
67public static KeyVaultSecret AsKeyVaultSecret(this IAzureKeyVaultSecretReference secretReference, AzureResourceInfrastructure infrastructure)
118/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param>
129public static ProvisioningParameter AsProvisioningParameter(this IResourceBuilder<ParameterResource> parameterResourceBuilder, AzureResourceInfrastructure infrastructure, string? parameterName = null)
142/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param>
150public static ProvisioningParameter AsProvisioningParameter(this IManifestExpressionProvider manifestExpressionProvider, AzureResourceInfrastructure infrastructure, string? parameterName = null, bool? isSecure = null)
170/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param>
181public static ProvisioningParameter AsProvisioningParameter(this ParameterResource parameterResource, AzureResourceInfrastructure infrastructure, string? parameterName = null)
200/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param>
211public static ProvisioningParameter AsProvisioningParameter(this BicepOutputReference outputReference, AzureResourceInfrastructure infrastructure, string? parameterName = null)
230/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param>
239public static ProvisioningParameter AsProvisioningParameter(this EndpointReference endpointReference, AzureResourceInfrastructure infrastructure, string parameterName)
257/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param>
266public static ProvisioningParameter AsProvisioningParameter(this ReferenceExpression expression, AzureResourceInfrastructure infrastructure, string parameterName)
277private static ProvisioningParameter GetOrAddParameter(AzureResourceInfrastructure infrastructure, string parameterName, bool? isSecure = null)
Aspire.Hosting.Azure.AppConfiguration (3)
Aspire.Hosting.Azure.AppContainers (30)
ContainerAppExtensions.cs (9)
23/// <exception cref="ArgumentException">Throws if the container app resource is not parented to a <see cref="AzureResourceInfrastructure"/>.</exception>
28/// in conjunction with the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/>
42/// method via the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/>
64if (app.ParentInfrastructure is not AzureResourceInfrastructure module)
153public static IResourceBuilder<T> PublishAsAzureContainerAppJob<T>(this IResourceBuilder<T> resource, Action<AzureResourceInfrastructure, ContainerAppJob> configure)
208Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null)
227/// This method is a convenience wrapper around <see cref="PublishAsAzureContainerAppJob{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerAppJob})"/>
239public static IResourceBuilder<T> PublishAsScheduledAzureContainerAppJob<T>(this IResourceBuilder<T> resource, string cronExpression, Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null)
261Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null)
Aspire.Hosting.Azure.ApplicationInsights (3)
Aspire.Hosting.Azure.AppService (21)
Aspire.Hosting.Azure.CognitiveServices (4)
Aspire.Hosting.Azure.ContainerRegistry (5)
Aspire.Hosting.Azure.CosmosDB (7)
Aspire.Hosting.Azure.EventHubs (5)
Aspire.Hosting.Azure.FrontDoor (2)
Aspire.Hosting.Azure.KeyVault (4)
Aspire.Hosting.Azure.Kubernetes (2)
Aspire.Hosting.Azure.Kusto (4)
Aspire.Hosting.Azure.Network (29)
Aspire.Hosting.Azure.OperationalInsights (3)
Aspire.Hosting.Azure.PostgreSQL (8)
Aspire.Hosting.Azure.Redis (13)
Aspire.Hosting.Azure.Sandboxes (8)
Aspire.Hosting.Azure.Search (3)
Aspire.Hosting.Azure.ServiceBus (7)
Aspire.Hosting.Azure.SignalR (3)
Aspire.Hosting.Azure.Sql (9)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Azure.Tests (57)
PublicApiTests\AppContainersPublicApiTests.cs (7)
16Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { };
29Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
40Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
52Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { };
65Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
93Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { };
106Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
Aspire.Hosting.Azure.WebPubSub (3)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
1429AssertCallbackParameterTypes(publishAsWebsite, "configure", typeof(AzureResourceInfrastructure), typeof(WebSite));
1430AssertCallbackParameterTypes(publishAsWebsite, "configureSlot", typeof(AzureResourceInfrastructure), typeof(WebSiteSlot));
1433AssertCallbackParameterTypes(publishAsContainerAppJob, "configure", typeof(AzureResourceInfrastructure), typeof(ContainerAppJob));
1613typeof(AzureResourceInfrastructure).Assembly,
Aspire.Hosting.Foundry (18)