21 references to IAzureResource
Aspire.Hosting.Azure (21)
AzureBicepResource.cs (1)
22IAzureResource
AzureResourceExtensions.cs (2)
21where T : IAzureResource, IResourceWithConnectionString 32public static string GetBicepIdentifier(this IAzureResource resource) =>
BicepResourceAnnotation.cs (1)
14/// The <see cref="AzureProvisioner"/> is only capable of deploying resources that implement <see cref="IAzureResource"/>
Provisioning\AzureProvisionerExtensions.cs (1)
39where TResource : IAzureResource
Provisioning\Provisioners\AzureProvisioner.cs (9)
45private static List<(IResource Resource, IAzureResource AzureResource)> GetAzureResourcesFromAppModel(DistributedApplicationModel appModel) 52var azureResources = new List<(IResource, IAzureResource)>(); 59else if (resource is IAzureResource azureResource) 103IAzureResource ar => ar, 112async Task UpdateStateAsync((IResource Resource, IAzureResource AzureResource) resource, Func<CustomResourceSnapshot, CustomResourceSnapshot> stateFactory) 134async Task AfterProvisionAsync((IResource Resource, IAzureResource AzureResource) resource) 198IList<(IResource Resource, IAzureResource AzureResource)> azureResources, 255private async Task ProcessResourceAsync(IConfiguration configuration, Lazy<Task<ProvisioningContext>> provisioningContextLazy, (IResource Resource, IAzureResource AzureResource) resource, CancellationToken cancellationToken) 260IAzureResourceProvisioner? SelectProvisioner(IAzureResource resource)
Provisioning\Provisioners\AzureResourceProvisionerOfT.cs (7)
42Task<bool> ConfigureResourceAsync(IConfiguration configuration, IAzureResource resource, CancellationToken cancellationToken); 44bool ShouldProvision(IConfiguration configuration, IAzureResource resource); 47IAzureResource resource, 53where TResource : IAzureResource 55Task<bool> IAzureResourceProvisioner.ConfigureResourceAsync(IConfiguration configuration, IAzureResource resource, CancellationToken cancellationToken) => 58bool IAzureResourceProvisioner.ShouldProvision(IConfiguration configuration, IAzureResource resource) => 62IAzureResource resource,