37 instantiations of DistributedApplicationOptions
Aspire.Hosting (2)
DistributedApplication.cs (1)
141var builder = new DistributedApplicationBuilder(new DistributedApplicationOptions() { Args = args });
DistributedApplicationBuilder.cs (1)
92public DistributedApplicationBuilder(string[] args) : this(new DistributedApplicationOptions { Args = args })
Aspire.Hosting.Containers.Tests (6)
ContainerResourceTests.cs (2)
166var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions { ProjectDirectory = basePath }); 227var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
WithDockerfileTests.cs (4)
158var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 206var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 253var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 299var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
132var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
207var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } } ); 243var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions() { Args = new string[] { "--publisher", "manifest" } });
Aspire.Hosting.Tests (25)
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(); 147var distributedApplicationOptions = new DistributedApplicationOptions(); 169var distributedApplicationOptions = new DistributedApplicationOptions(); 191var distributedApplicationOptions = new DistributedApplicationOptions(); 216var distributedApplicationOptions = new DistributedApplicationOptions(); 241var distributedApplicationOptions = new DistributedApplicationOptions(); 263var distributedApplicationOptions = new DistributedApplicationOptions(); 285var distributedApplicationOptions = new DistributedApplicationOptions(); 301var distributedApplicationOptions = new DistributedApplicationOptions(); 317var distributedApplicationOptions = new DistributedApplicationOptions();
Dcp\ApplicationExecutorTests.cs (7)
50var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 410var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 437var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 526var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 646var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 693var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 1034new DistributedApplicationOptions(),
ManifestGenerationTests.cs (2)
91var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions 150var appBuilder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions
TestProject.AppHost (1)
TestProgram.cs (1)
45var builder = DistributedApplication.CreateBuilder(new DistributedApplicationOptions()
64 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\ApplicationExecutor.cs (2)
75DistributedApplicationOptions distributedApplicationOptions, 101private readonly DistributedApplicationOptions _distributedApplicationOptions = distributedApplicationOptions;
Dcp\DcpOptions.cs (1)
101DistributedApplicationOptions 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"/>. 72/// way to be put into publish mode. Refer to <see cref="CreateBuilder(string[])"/> or <see cref="CreateBuilder(DistributedApplicationOptions)"/> 104/// deployment tools. It is also possible to provide arguments using the <see cref="CreateBuilder(Aspire.Hosting.DistributedApplicationOptions)"/> 148/// <param name="options">The <see cref="DistributedApplicationOptions"/> to use for configuring the builder.</param> 152/// The <see cref="DistributedApplication.CreateBuilder(DistributedApplicationOptions)"/> method provides 155/// from a specified container registry by using the <see cref="DistributedApplicationOptions.ContainerRegistryOverride"/> 156/// property, or disable the dashboard by using the <see cref="DistributedApplicationOptions.DisableDashboard"/> 157/// property. Refer to the <see cref="DistributedApplicationOptions"/> class for more details on 161/// When supplying a custom <see cref="DistributedApplicationOptions"/> it is commended to populate the 162/// <see cref="DistributedApplicationOptions.Args"/> property to ensure that the app host continues to function 182public static IDistributedApplicationBuilder CreateBuilder(DistributedApplicationOptions options)
DistributedApplicationBuilder.cs (4)
50private readonly DistributedApplicationOptions _options; 120public DistributedApplicationBuilder(DistributedApplicationOptions options) 376private void ConfigurePublishingOptions(DistributedApplicationOptions options) 444private 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"/>. 105throw new InvalidOperationException($"Failed to load AppHost assembly '{AssemblyName}' specified in {nameof(DistributedApplicationOptions)}.", ex);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
82static extern ref string? GetProjectDirectoryRef(DistributedApplicationOptions? @this);
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
132var configure = (DistributedApplicationOptions options) =>
Aspire.Hosting.Testing (10)
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 (2)
106protected virtual void OnBuilderCreating(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostOptions) 140private void OnBuilderCreatingCore(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostBuilderOptions)
DistributedApplicationTestingBuilder.cs (4)
85public static Task<IDistributedApplicationTestingBuilder> CreateAsync<TEntryPoint>(string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default) 99public static async Task<IDistributedApplicationTestingBuilder> CreateAsync(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder, CancellationToken cancellationToken = default) 109private sealed class SuspendingDistributedApplicationFactory(Type entryPoint, string[] args, Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder) 120protected override void OnBuilderCreating(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostOptions)
Aspire.Hosting.Testing.Tests (2)
DistributedApplicationFixtureOfT.cs (1)
16protected override void OnBuilderCreating(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostOptions)
TestingBuilderTests.cs (1)
71Action<DistributedApplicationOptions, HostApplicationBuilderSettings> configureBuilder = (options, settings) =>
Aspire.Hosting.Tests (23)
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(); 147var distributedApplicationOptions = new DistributedApplicationOptions(); 169var distributedApplicationOptions = new DistributedApplicationOptions(); 191var distributedApplicationOptions = new DistributedApplicationOptions(); 216var distributedApplicationOptions = new DistributedApplicationOptions(); 241var distributedApplicationOptions = new DistributedApplicationOptions(); 263var distributedApplicationOptions = new DistributedApplicationOptions(); 285var distributedApplicationOptions = new DistributedApplicationOptions(); 301var distributedApplicationOptions = new DistributedApplicationOptions(); 317var distributedApplicationOptions = new DistributedApplicationOptions();
Utils\TestDistributedApplicationBuilder.cs (7)
59public static TestDistributedApplicationBuilder Create(Action<DistributedApplicationOptions>? configureOptions, ITestOutputHelper? testOutputHelper = null) 67private TestDistributedApplicationBuilder(Action<DistributedApplicationOptions>? configureOptions, ITestOutputHelper? testOutputHelper = null) 90void Configure(DistributedApplicationOptions applicationOptions, HostApplicationBuilderSettings hostBuilderOptions) 172private readonly Action<DistributedApplicationOptions, HostApplicationBuilderSettings>? _onConstructing; 174private BuilderInterceptor(Action<DistributedApplicationOptions, HostApplicationBuilderSettings>? onConstructing) 180public static DistributedApplicationBuilder CreateBuilder(Action<DistributedApplicationOptions, HostApplicationBuilderSettings> onConstructing) 247var (options, innerBuilderOptions) = ((DistributedApplicationOptions, HostApplicationBuilderSettings))value.Value!;