1 instantiation of AzureAIFoundryDeploymentResource
Aspire.Hosting.Azure.AIFoundry (1)
AzureAIFoundryExtensions.cs (1)
58var deployment = new AzureAIFoundryDeploymentResource(name, modelName, modelVersion, format, builder.Resource);
19 references to AzureAIFoundryDeploymentResource
Aspire.Hosting.Azure.AIFoundry (16)
AzureAIFoundryDeploymentResource.cs (1)
20/// Initializes a new instance of the <see cref="AzureAIFoundryDeploymentResource"/> class.
AzureAIFoundryExtensions.cs (12)
50public static IResourceBuilder<AzureAIFoundryDeploymentResource> AddDeployment(this IResourceBuilder<AzureAIFoundryResource> builder, [ResourceName] string name, string modelName, string modelVersion, string format) 58var deployment = new AzureAIFoundryDeploymentResource(name, modelName, modelVersion, format, builder.Resource); 93public static IResourceBuilder<AzureAIFoundryDeploymentResource> AddDeployment(this IResourceBuilder<AzureAIFoundryResource> builder, [ResourceName] string name, AIFoundryModel model) 109/// <param name="configure">A method that can be used for customizing the <see cref="AzureAIFoundryDeploymentResource"/>.</param> 111public static IResourceBuilder<AzureAIFoundryDeploymentResource> WithProperties(this IResourceBuilder<AzureAIFoundryDeploymentResource> builder, Action<AzureAIFoundryDeploymentResource> configure) 142foreach (var deployment in resource.Deployments) 246internal static IResourceBuilder<AzureAIFoundryDeploymentResource> AsLocalDeployment(this IResourceBuilder<AzureAIFoundryDeploymentResource> builder, AzureAIFoundryDeploymentResource deployment) 396foreach (var deployment in resource.Deployments)
AzureAIFoundryResource.cs (3)
20private readonly List<AzureAIFoundryDeploymentResource> _deployments = []; 48public IReadOnlyList<AzureAIFoundryDeploymentResource> Deployments => _deployments; 89internal void AddDeployment(AzureAIFoundryDeploymentResource deployment)
Aspire.Hosting.Azure.Tests (3)
AzureAIFoundryExtensionsTests.cs (3)
31var deployment = Assert.Single(resource.Deployments); 53var deployment = Assert.Single(resource.Deployments); 109foreach (var deployment in localResource.Deployments)