39 instantiations of DistributedApplicationOptions
Aspire.Hosting (2)
DistributedApplication.cs (1)
144var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args });
DistributedApplicationBuilder.cs (1)
99public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (6)
ContainerResourceTests.cs (2)
210var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions { ProjectDirectory = basePath }); 271var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
WithDockerfileTests.cs (4)
236var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 284var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 331var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 377var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
128var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
204var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } } ); 240var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Tests (27)
Dashboard\TransportOptionsValidatorTests.cs (16)
15var distributedApplicationOptions = new DistributedApplicationOptions(); 35var distributedApplicationOptions = new DistributedApplicationOptions(); 51var distributedApplicationOptions = new DistributedApplicationOptions() 69var distributedApplicationOptions = new DistributedApplicationOptions() 87var distributedApplicationOptions = new DistributedApplicationOptions(); 108var distributedApplicationOptions = new DistributedApplicationOptions(); 127var distributedApplicationOptions = new DistributedApplicationOptions(); 149var distributedApplicationOptions = new DistributedApplicationOptions(); 173var distributedApplicationOptions = new DistributedApplicationOptions(); 197var distributedApplicationOptions = new DistributedApplicationOptions(); 224var distributedApplicationOptions = new DistributedApplicationOptions(); 249var distributedApplicationOptions = new DistributedApplicationOptions(); 273var distributedApplicationOptions = new DistributedApplicationOptions(); 295var distributedApplicationOptions = new DistributedApplicationOptions(); 311var distributedApplicationOptions = new DistributedApplicationOptions(); 331var distributedApplicationOptions = new DistributedApplicationOptions();
Dcp\DcpExecutorTests.cs (9)
50var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 115var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 168var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 534var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 561var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 650var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 770var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 817var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 1242new DistributedApplicationOptions(),
ManifestGenerationTests.cs (2)
91var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 113var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
TestProject.AppHost (1)
TestProgram.cs (1)
45var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions()
75 references to DistributedApplicationOptions
Aspire.Hosting (27)
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
62public static Task UpdateContainerRegistryAsync(BeforeStartEvent @event, DistributedApplicationOptions options)
Dashboard\DashboardServiceHost.cs (2)
43/// <see langword="null"/> if <see cref="DistributedApplicationOptions.DashboardEnabled"/> is <see langword="false"/>. 49DistributedApplicationOptions options,
Dashboard\TransportOptionsValidator.cs (1)
10internal class TransportOptionsValidator(IConfiguration configuration, DistributedApplicationExecutionContext executionContext, DistributedApplicationOptions distributedApplicationOptions) : IValidateOptions<TransportOptions>
Dcp\DcpExecutor.cs (2)
49private readonly DistributedApplicationOptions _distributedApplicationOptions; 78DistributedApplicationOptions distributedApplicationOptions,
Dcp\DcpOptions.cs (1)
114DistributedApplicationOptions appOptions,
DistributedApplication.cs (13)
31/// The <see cref="CreateBuilder(Aspire.Hosting.DistributedApplicationOptions)"/> method provides additional options for 32/// constructing the <see cref="IDistributedApplicationBuilder"/> including disabling the .NET Aspire dashboard (see <see cref="DistributedApplicationOptions.DisableDashboard"/>) or 33/// allowing unsecured communication between the browser and dashboard, and dashboard and app host (see <see cref="DistributedApplicationOptions.AllowUnsecuredTransport"/>. 73/// way to be put into publish mode. Refer to <see cref="CreateBuilder(string[])"/> or <see cref="CreateBuilder(DistributedApplicationOptions)"/> 105/// deployment tools. It is also possible to provide arguments using the <see cref="CreateBuilder(Aspire.Hosting.DistributedApplicationOptions)"/> 151/// <param name="options">The <see cref="DistributedApplicationOptions"/> to use for configuring the builder.</param> 155/// The <see cref="DistributedApplication.CreateBuilder(DistributedApplicationOptions)"/> method provides 158/// from a specified container registry by using the <see cref="DistributedApplicationOptions.ContainerRegistryOverride"/> 159/// property, or disabling the dashboard by using the <see cref="DistributedApplicationOptions.DisableDashboard"/> 160/// property. Refer to the <see cref="DistributedApplicationOptions"/> class for more details on 164/// When supplying a custom <see cref="DistributedApplicationOptions"/> it is recommended to populate the 165/// <see cref="DistributedApplicationOptions.Args"/> property to ensure that the app host continues to function 185public static IDistributedApplicationBuilder CreateBuilder(DistributedApplicationOptions options)
DistributedApplicationBuilder.cs (4)
57private readonly DistributedApplicationOptions _options; 156public DistributedApplicationBuilder(DistributedApplicationOptions options) 452private void ConfigurePublishingOptions(DistributedApplicationOptions options) 521private static DiagnosticListener LogBuilderConstructing(DistributedApplicationOptions appBuilderOptions, HostApplicationBuilderSettings hostBuilderOptions)
DistributedApplicationOptions.cs (3)
9/// Options for configuring the behavior of <see cref="DistributedApplication.CreateBuilder(DistributedApplicationOptions)"/>. 22/// Initializes a new instance of <see cref="DistributedApplicationOptions"/>. 110throw new InvalidOperationException($"Failed to load AppHost assembly '{AssemblyName}' specified in {nameof(DistributedApplicationOptions)}.", ex);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
88static extern ref string? GetProjectDirectoryRef(DistributedApplicationOptions? @this);
Aspire.Hosting.Testing (14)
DistributedApplicationEntryPointInvoker.cs (4)
20Action<DistributedApplicationOptions, HostApplicationBuilderSettings>? onConstructing = null, 50private readonly Action<DistributedApplicationOptions, HostApplicationBuilderSettings>? _onConstructing; 58Action<DistributedApplicationOptions, HostApplicationBuilderSettings>? onConstructing, 186var args = ((DistributedApplicationOptions Options, HostApplicationBuilderSettings InnerBuilderOptions))value.Value!;
DistributedApplicationFactory.cs (5)
124protected virtual void OnBuilderCreating(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostOptions) 178DistributedApplicationOptions applicationOptions, 238DistributedApplicationOptions applicationOptions, 241Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder) 249DistributedApplicationOptions applicationOptions,
DistributedApplicationTestingBuilder.cs (5)
88public static Task<IDistributedApplicationTestingBuilder> CreateAsync<TEntryPoint>(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default) 102public static async Task<IDistributedApplicationTestingBuilder> CreateAsync(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default) 130public static IDistributedApplicationTestingBuilder Create(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder) 155private sealed class SuspendingDistributedApplicationFactory(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder) 166protected override void OnBuilderCreating(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostOptions)
Aspire.Hosting.Testing.Tests (15)
DistributedApplicationFixtureOfT.cs (1)
16protected override void OnBuilderCreating(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostOptions)
TestingBuilderTests.cs (4)
84Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (options, settings) => 216Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = directArgs switch 301Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder; 349Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder;
TestingPublicApiTests.cs (10)
291Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { }; 303Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = null!; 317Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { }; 336Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { }; 349Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { }; 362Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = null!; 377Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { }; 425Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { }; 437Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = null!; 451Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (_, _) => { };
Aspire.Hosting.Tests (18)
Dashboard\TransportOptionsValidatorTests.cs (16)
15var distributedApplicationOptions = new DistributedApplicationOptions(); 35var distributedApplicationOptions = new DistributedApplicationOptions(); 51var distributedApplicationOptions = new DistributedApplicationOptions() 69var distributedApplicationOptions = new DistributedApplicationOptions() 87var distributedApplicationOptions = new DistributedApplicationOptions(); 108var distributedApplicationOptions = new DistributedApplicationOptions(); 127var distributedApplicationOptions = new DistributedApplicationOptions(); 149var distributedApplicationOptions = new DistributedApplicationOptions(); 173var distributedApplicationOptions = new DistributedApplicationOptions(); 197var distributedApplicationOptions = new DistributedApplicationOptions(); 224var distributedApplicationOptions = new DistributedApplicationOptions(); 249var distributedApplicationOptions = new DistributedApplicationOptions(); 273var distributedApplicationOptions = new DistributedApplicationOptions(); 295var distributedApplicationOptions = new DistributedApplicationOptions(); 311var distributedApplicationOptions = new DistributedApplicationOptions(); 331var distributedApplicationOptions = new DistributedApplicationOptions();
Utils\TestDistributedApplicationBuilder.cs (2)
43public static IDistributedApplicationTestingBuilder Create(Action<DistributedApplicationOptions>? configureOptions, ITestOutputHelper? testOutputHelper = null) 51private static IDistributedApplicationTestingBuilder CreateCore(string[] args, Action<DistributedApplicationOptions>? configureOptions, ITestOutputHelper? testOutputHelper = null)