97 references to AspireUnion
Aspire.Hosting (18)
ApplicationModel\CommandLineArgsEditor.cs (1)
29[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)
152[AspireUnion(typeof(string), typeof(AddContainerOptions))] object image) 1254[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object value) where T : ContainerResource
DistributedApplication.cs (1)
276[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)
373[AspireUnion(typeof(string), typeof(ReferenceExpression))] object? environmentVariableNameOrExpression = null)
ProjectResourceBuilderExtensions.cs (1)
130[AspireUnion(typeof(string), typeof(ProjectResourceOptions))] object? launchProfileOrOptions = null)
ResourceBuilderExtensions.cs (4)
259[AspireUnion( 655[AspireUnion(typeof(string), typeof(ReferenceExpression))] object value) where T : IResourceWithConnectionString 1164[AspireUnion(typeof(IResourceBuilder<IResource>), typeof(EndpointReference), typeof(string), typeof(Uri))] object source, 2385[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) 143[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 144[AspireUnion(typeof(string), typeof(ParameterResource))] object? resourceGroup = null) 185[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 186[AspireUnion(typeof(string), typeof(ParameterResource))] object? resourceGroup = null) 242[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 243[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 299[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 300[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 356[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 357[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 414[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 415[AspireUnion(typeof(string), typeof(ParameterResource))] object resourceGroup, 416[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 477[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 478[AspireUnion(typeof(string), typeof(ParameterResource))] object resourceGroup, 479[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 540[AspireUnion(typeof(string), typeof(ParameterResource))] object name, 541[AspireUnion(typeof(string), typeof(ParameterResource))] object resourceGroup, 542[AspireUnion(typeof(string), typeof(ParameterResource))] object subscription) 596[AspireUnion(typeof(string), typeof(ParameterResource))] object name) 648[AspireUnion(typeof(string), typeof(ParameterResource))] object name) 700[AspireUnion(typeof(string), typeof(ParameterResource))] object name)
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentExtensions.cs (2)
368[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>), typeof(IResourceBuilder<AzureApplicationInsightsResource>))] object? applicationInsights = null) 448[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object deploymentSlot)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
411[AspireUnion(typeof(string), typeof(IEnumerable<string>))] object partitionKeyPaths,
Aspire.Hosting.Azure.EntraId (13)
EntraIdResourceExtensions.cs (13)
464[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object tenantId, 465[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object clientId) 606[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object tenantId, 607[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object clientId) 1011[AspireUnion(typeof(IResourceBuilder<IComputeResource>), typeof(IResourceBuilder<AzureUserAssignedIdentityResource>))] object? identity = null) 1119[AspireUnion(typeof(string), typeof(IResourceBuilder<AzureKeyVaultResource>))] object keyVaultUrl, 1611[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>), typeof(EndpointReference))] object redirectUri, 1703[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object ownerObjectId) 1770[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object ownerObjectId) 1826[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object ownerObjectId) 2065[AspireUnion(typeof(IResourceBuilder<AzureUserAssignedIdentityResource>), typeof(IResourceBuilder<IComputeResource>))] object identity, 2654[AspireUnion(typeof(EntraIdWellKnownApi), typeof(EntraIdCustomApi))] object api, 2795[AspireUnion(typeof(EntraIdWellKnownApi), typeof(EntraIdCustomApi))] object api,
Aspire.Hosting.Azure.Functions (2)
DurableTask\DurableTaskResourceExtensions.cs (2)
111[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object connectionString) 303[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.Azure.Provisioning (3)
BicepValueFactory.cs (3)
287[AspireUnion(typeof(string), typeof(BicepValueProxy))] object value, 288[AspireUnion(typeof(int), typeof(BicepValueProxy))] object count) 413[AspireUnion(typeof(string), typeof(int), typeof(BicepValueProxy))] object index)
Aspire.Hosting.CodeGeneration.Go.Tests (2)
GoTestExtensions.cs (1)
23[AspireUnion(typeof(string), typeof(double), typeof(bool))] object value)
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)
278[AspireUnion(typeof(string), typeof(IResourceBuilder<IDotnetProgramResource>))] object? migrationsProject = null)
Aspire.Hosting.Foundry (6)
FoundryExtensions.cs (1)
94[AspireUnion(typeof(FoundryModel), typeof(string))] object model,
Project\ConnectionBuilderExtensions.cs (1)
340[AspireUnion(
Project\ProjectBuilderExtension.cs (2)
253[AspireUnion( 297[AspireUnion(typeof(FoundryModel), typeof(string))] object model,
PromptAgent\PromptAgentBuilderExtensions.cs (1)
438[AspireUnion(
Toolbox\FoundryToolboxBuilderExtensions.cs (1)
281[AspireUnion(typeof(string), typeof(EndpointReference), typeof(ReferenceExpression))] object endpoint,
Aspire.Hosting.Kubernetes (8)
CertManagerExtensions.cs (2)
268[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object serverUrl, 269[AspireUnion(typeof(string), typeof(IResourceBuilder<ParameterResource>))] object email)
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)
964public static void TestUnionEnumParameter(IDistributedApplicationBuilder builder, [AspireUnion(typeof(TestUnionEnum), typeof(string))] object value)
AttributeDataReaderTests.cs (1)
253public static void OfficialUnionMethod([AspireUnion(typeof(string), typeof(int))] object value)
CapabilityDispatcherTests.cs (4)
2689public static string AcceptUnion([AspireUnion(typeof(string), typeof(int))] object value) 2696public static string AcceptDtoUnion([AspireUnion(typeof(TestUnionDto), typeof(string[]))] object value) 2708public static string AcceptEnumStringUnion([AspireUnion(typeof(TestDispatchEnum), typeof(string))] object value) 2720public 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)