Skip to content
Docs Try Aspire

DistributedApplicationOptions Properties

Class Properties 10 members
Options for configuring the behavior of DistributedApplication.CreateBuilder.
AllowUnsecuredTransport Section titled AllowUnsecuredTransport bool
Allows the use of HTTP urls for for the AppHost resource endpoint.
public bool AllowUnsecuredTransport { get; set; }
Args Section titled Args nullable string[]?
The command line arguments.
public string[]? Args { get; set; }
AssemblyName Section titled AssemblyName nullable string?
The AssemblyName of the AppHost project for loading configuration attributes; if not set defaults to Assembly.GetEntryAssembly().
public string? AssemblyName { get; set; }
ContainerRegistryOverride Section titled ContainerRegistryOverride nullable string?
When containers are used, use this value instead to override the container registry that is specified.
public string? ContainerRegistryOverride { get; set; }
DashboardApplicationName Section titled DashboardApplicationName nullable string?
The application name to display in the dashboard. For file-based app hosts, this defaults to the directory name. For other apps, it falls back to the environment's application name.
public string? DashboardApplicationName { get; set; }
DeveloperCertificateDefaultHttpsTerminationEnabled Section titled DeveloperCertificateDefaultHttpsTerminationEnabled nullable bool?
Whether to attempt to implicitly use a developer certificate (currently the ASP.NET Core development certificate) for server authentication for non-ASP.NET resources by default at runtime.
public bool? DeveloperCertificateDefaultHttpsTerminationEnabled { get; set; }
DisableDashboard Section titled DisableDashboard bool
Determines whether the dashboard is disabled.
public bool DisableDashboard { get; set; }
EnableResourceLogging Section titled EnableResourceLogging bool
Enables resource logging. Logs will be written to the logger category (ApplicationName.Resources.{resourceName}).
public bool EnableResourceLogging { get; set; }
ProjectDirectory Section titled ProjectDirectory nullable string?
The directory containing the AppHost project file. If not set, defaults to the directory resolved from assembly metadata.
public string? ProjectDirectory { get; set; }
TrustDeveloperCertificate Section titled TrustDeveloperCertificate nullable bool?
Whether to attempt to implicitly add trust for developer certificates (currently the ASP.NET development certificate) by default at runtime. Disabling this option will also disable the automatic use of the developer certificate for server authentication.
public bool? TrustDeveloperCertificate { get; set; }