77 instantiations of AspireUnion
Aspire.Hosting (18)
ApplicationModel\CommandLineArgsEditor.cs (1)
20[AspireUnion(
ApplicationModel\EnvironmentCallbackContext.cs (1)
36[AspireUnion(typeof(string), typeof(ReferenceExpression))]
ApplicationModel\EnvironmentEditor.cs (1)
22[AspireUnion(
ApplicationModel\ResourceUrlsEditor.cs (2)
22public async Task Add([AspireUnion(typeof(string), typeof(ReferenceExpression))] object url, string? displayText = null) 53public async Task AddForEndpoint(EndpointReference endpoint, [AspireUnion(typeof(string), typeof(ReferenceExpression))] object url, string? displayText = null)
Ats\ResourceCommandExports.cs (1)
39[AspireUnion(typeof(string), typeof(IResource))] object resource,
ContainerRegistryResourceBuilderExtensions.cs (2)
126[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object endpoint, 127[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object? repository = null)
ContainerResourceBuilderExtensions.cs (2)
155[AspireUnion(typeof(string), typeof(AddContainerOptions))] object image) 1224[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object value) where T : ContainerResource
DistributedApplication.cs (1)
260[AspireUnion(typeof(string[]), typeof(CreateBuilderOptions))] object? argsOrOptions = null)
ExternalServiceBuilderExtensions.cs (1)
48[AspireUnion(typeof(string), typeof(Uri), typeof(IResourceBuilder<ParameterResource>))] object url)
ParameterResourceBuilderExtensions.cs (1)
343[AspireUnion(typeof(string), typeof(ReferenceExpression))] object? environmentVariableNameOrExpression = null)
ProjectResourceBuilderExtensions.cs (1)
118[AspireUnion(typeof(string), typeof(ProjectResourceOptions))] object? launchProfileOrOptions = null)
ResourceBuilderExtensions.cs (4)
243[AspireUnion( 639[AspireUnion(typeof(string), typeof(ReferenceExpression))] object value) where T : IResourceWithConnectionString 913[AspireUnion(typeof(IResourceBuilder<IResource>), typeof(EndpointReference), typeof(string), typeof(Uri))] object source, 2073[AspireUnion(typeof(string), typeof(ReferenceExpression))] object url,
Aspire.Hosting.Azure (25)
AzureBicepResourceExtensions.cs (1)
146[AspireUnion(
ExistingAzureResourceExtensions.cs (24)
85[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 86[AspireUnion(typeof(string), typeof(ParameterResource))] object? resourceGroup = null) 140[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 141[AspireUnion(typeof(string), typeof(ParameterResource))] object? resourceGroup = null) 178[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 179[AspireUnion(typeof(string), typeof(ParameterResource))] object? resourceGroup = null) 235[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 236[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 292[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 293[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 349[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 350[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 407[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 408[AspireUnion(typeof(string), typeof(ParameterResource))] object resourceGroup, 409[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 467[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 468[AspireUnion(typeof(string), typeof(ParameterResource))] object resourceGroup, 469[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 527[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 528[AspireUnion(typeof(string), typeof(ParameterResource))] object resourceGroup, 529[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 583[AspireUnion(typeof(string), typeof(ParameterResource))] object name) 635[AspireUnion(typeof(string), typeof(ParameterResource))] object name) 687[AspireUnion(typeof(string), typeof(ParameterResource))] object name)
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentExtensions.cs (2)
370[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>), typeof(IResourceBuilder<AzureApplicationInsightsResource>))] object? applicationInsights = null) 450[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object deploymentSlot)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
405[AspireUnion(typeof(string), typeof(IEnumerable<string>))] object partitionKeyPaths,
Aspire.Hosting.Azure.Functions (2)
DurableTask\DurableTaskResourceExtensions.cs (2)
111[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object connectionString) 299[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object taskHubName)
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResourceExtensions.cs (1)
267[AspireUnion(typeof(IResourceBuilder<ParameterResource>), typeof(ReferenceExpression))] object value,
Aspire.Hosting.Azure.Network (2)
AzureVirtualNetworkExtensions.cs (2)
86[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object? addressPrefix = null) 250[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object addressPrefix,
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
672[AspireUnion(typeof(string), typeof(IResourceBuilder<IResourceWithConnectionString>))] object dependency) where T : IResource
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
672[AspireUnion(typeof(string), typeof(IResourceBuilder<IResourceWithConnectionString>))] object dependency) where T : IResource
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
672[AspireUnion(typeof(string), typeof(IResourceBuilder<IResourceWithConnectionString>))] object dependency) where T : IResource
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
672[AspireUnion(typeof(string), typeof(IResourceBuilder<IResourceWithConnectionString>))] object dependency) where T : IResource
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TestTypes\TestExtensions.cs (1)
672[AspireUnion(typeof(string), typeof(IResourceBuilder<IResourceWithConnectionString>))] object dependency) where T : IResource
Aspire.Hosting.Docker (1)
CapturedEnvironmentVariable.cs (1)
37[AspireUnion(typeof(ParameterResource), typeof(ContainerMountAnnotation), typeof(ContainerImageReference), typeof(ContainerPortReference))]
Aspire.Hosting.EntityFrameworkCore (1)
EFMigrationResourceBuilderExtensions.cs (1)
275[AspireUnion(typeof(string), typeof(IResourceBuilder<ProjectResource>))] object? migrationsProject = null)
Aspire.Hosting.Foundry (5)
FoundryExtensions.cs (1)
93[AspireUnion(typeof(FoundryModel), typeof(string))] object model,
Project\ConnectionBuilderExtensions.cs (1)
287[AspireUnion(
Project\ProjectBuilderExtension.cs (2)
253[AspireUnion( 297[AspireUnion(typeof(FoundryModel), typeof(string))] object model,
PromptAgent\PromptAgentBuilderExtensions.cs (1)
438[AspireUnion(
Aspire.Hosting.Kubernetes (6)
HelmChartOptions.cs (5)
70internal HelmChartOptions WithNamespace([AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object @namespace) 117internal HelmChartOptions WithReleaseName([AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object releaseName) 169internal HelmChartOptions WithChartVersion([AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object version) 216internal HelmChartOptions WithChartName([AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object name) 263internal HelmChartOptions WithChartDescription([AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object description)
KubernetesManifestResource.cs (1)
87[AspireUnion(typeof(string), typeof(double), typeof(bool))] object value)
Aspire.Hosting.RemoteHost.Tests (6)
AtsCapabilityScannerTests.cs (1)
840public static void TestUnionEnumParameter(IDistributedApplicationBuilder builder, [AspireUnion(typeof(TestUnionEnum), typeof(string))] object value)
AttributeDataReaderTests.cs (1)
213public static void OfficialUnionMethod([AspireUnion(typeof(string), typeof(int))] object value)
CapabilityDispatcherTests.cs (4)
2495public static string AcceptUnion([AspireUnion(typeof(string), typeof(int))] object value) 2502public static string AcceptDtoUnion([AspireUnion(typeof(TestUnionDto), typeof(string[]))] object value) 2514public static string AcceptEnumStringUnion([AspireUnion(typeof(TestDispatchEnum), typeof(string))] object value) 2526public static string AcceptHandleUnion([AspireUnion(typeof(TestResourceWithProperties), typeof(string))] object value)
Aspire.Hosting.Yarp (2)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (2)
167[AspireUnion(typeof(YarpCluster), typeof(EndpointReference), typeof(IResourceBuilder<IResourceWithServiceDiscovery>), typeof(IResourceBuilder<ExternalServiceResource>), typeof(string))] object target) 249[AspireUnion(typeof(YarpCluster), typeof(EndpointReference), typeof(IResourceBuilder<IResourceWithServiceDiscovery>), typeof(IResourceBuilder<ExternalServiceResource>), typeof(string))] object target)