2 implementations of IDistributedApplicationBuilder
Aspire.Hosting (1)
Aspire.Hosting.Tests (1)
480 references to IDistributedApplicationBuilder
Aspire.Hosting (82)
ContainerResourceBuilderExtensions.cs (8)
10/// Provides extension methods for <see cref="IDistributedApplicationBuilder"/> to add container resources to the application.
17/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
21public static IResourceBuilder<ContainerResource> AddContainer(this IDistributedApplicationBuilder builder, [ResourceName] string name, string image)
33/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
38public static IResourceBuilder<ContainerResource> AddContainer(this IDistributedApplicationBuilder builder, [ResourceName] string name, string image, string tag)
372/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
385/// When generating the manifest for deployment tools, the <see cref="AddDockerfile(IDistributedApplicationBuilder, string, string, string?, string?)"/>
398public static IResourceBuilder<ContainerResource> AddDockerfile(this IDistributedApplicationBuilder builder, [ResourceName] string name, string contextPath, string? dockerfilePath = null, string? stage = null)
IDistributedApplicationBuilder.cs (10)
19/// The <see cref="IDistributedApplicationBuilder"/> is the central interface for defining
24/// To create an instance of the <see cref="IDistributedApplicationBuilder"/> interface
26/// method. Once the builder is created extension methods which target the <see cref="IDistributedApplicationBuilder"/>
94/// An example of using the <see cref="DistributedApplicationExecutionContext.IsRunMode"/> property on the <see cref="IDistributedApplicationBuilder"/> via
140/// This example shows the implementation of the <see cref="ContainerResourceBuilderExtensions.AddContainer(IDistributedApplicationBuilder, string, string)"/>
142/// the pattern for defining new resources is to include a method that extends <see cref="IDistributedApplicationBuilder"/> and and then
182/// The following example shows the implementation of the <see cref="ParameterResourceBuilderExtensions.AddConnectionString(IDistributedApplicationBuilder, string, string?)"/>
186/// The <see cref="ParameterResourceBuilderExtensions.AddConnectionString(IDistributedApplicationBuilder, string, string?)" /> method creates a new
187/// <see cref="ParameterResource"/> in the application model. The return type of <see cref="ParameterResourceBuilderExtensions.AddConnectionString(IDistributedApplicationBuilder, string, string?)"/>
191/// To work around this issue the <see cref="ParameterResourceBuilderExtensions.AddConnectionString(IDistributedApplicationBuilder, string, string?)"/> method wraps the
ParameterResourceBuilderExtensions.cs (9)
25public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, bool secret = false)
45public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, string value, bool publishValueAsDefault = false, bool secret = false)
66public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, string name, Func<string> valueGetter, bool publishValueAsDefault = false, bool secret = false)
95public static IResourceBuilder<ParameterResource> AddParameterFromConfiguration(this IDistributedApplicationBuilder builder, string name, string configurationKey, bool secret = false)
122public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, ParameterDefault value, bool secret = false, bool persist = false)
149internal static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder,
217public static IResourceBuilder<IResourceWithConnectionString> AddConnectionString(this IDistributedApplicationBuilder builder, [ResourceName] string name, string? environmentVariableName = null)
282IDistributedApplicationBuilder builder, string name,
317IDistributedApplicationBuilder builder, string name, bool secret, GenerateParameterDefault parameterDefault)
ProjectResourceBuilderExtensions.cs (22)
16/// Provides extension methods for <see cref="IDistributedApplicationBuilder"/> to add and configure project resources.
26/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
31/// This overload of the <see cref="AddProject{TProject}(IDistributedApplicationBuilder, string)"/> method takes
61public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name) where TProject : IProjectMetadata, new()
72/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
78/// This overload of the <see cref="AddProject(IDistributedApplicationBuilder, string, string)"/> method adds a project to the application
82/// <inheritdoc cref="AddProject(IDistributedApplicationBuilder, string)" path="/remarks/para[@name='kestrel']" />
94public static IResourceBuilder<ProjectResource> AddProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectPath)
108/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
114/// This overload of the <see cref="AddProject{TProject}(IDistributedApplicationBuilder, string)"/> method takes
129/// <inheritdoc cref="AddProject(IDistributedApplicationBuilder, string)" path="/remarks/para[@name='kestrel']" />
141public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name, string? launchProfileName) where TProject : IProjectMetadata, new()
156/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
163/// This overload of the <see cref="AddProject(IDistributedApplicationBuilder, string, string)"/> method adds a project to the application
167/// <inheritdoc cref="AddProject(IDistributedApplicationBuilder, string)" path="/remarks/para[@name='kestrel']" />
179public static IResourceBuilder<ProjectResource> AddProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectPath, string? launchProfileName)
196/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
202/// This overload of the <see cref="AddProject{TProject}(IDistributedApplicationBuilder, string)"/> method takes
228public static IResourceBuilder<ProjectResource> AddProject<TProject>(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<ProjectResourceOptions> configure) where TProject : IProjectMetadata, new()
246/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param>
253/// This overload of the <see cref="AddProject(IDistributedApplicationBuilder, string, string)"/> method adds a project to the application
268public static IResourceBuilder<ProjectResource> AddProject(this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectPath, Action<ProjectResourceOptions> configure)
Aspire.Hosting.AWS (17)
Aspire.Hosting.AWS.Tests (2)
Aspire.Hosting.Azure (11)
Aspire.Hosting.Azure.AppConfiguration (2)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.ApplicationInsights (4)
Aspire.Hosting.Azure.CognitiveServices (2)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (3)
Aspire.Hosting.Azure.KeyVault (2)
Aspire.Hosting.Azure.OperationalInsights (2)
Aspire.Hosting.Azure.PostgreSQL (3)
Aspire.Hosting.Azure.Redis (1)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (2)
Aspire.Hosting.Azure.Sql (3)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.Tests (8)
Aspire.Hosting.Azure.WebPubSub (2)
Aspire.Hosting.Containers.Tests (9)
Aspire.Hosting.Dapr (6)
Aspire.Hosting.Dapr.Tests (2)
Aspire.Hosting.Elasticsearch (2)
Aspire.Hosting.Elasticsearch.Tests (5)
Aspire.Hosting.Garnet (2)
Aspire.Hosting.Garnet.Tests (4)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Kafka.Tests (3)
Aspire.Hosting.Keycloak (3)
Aspire.Hosting.Keycloak.Tests (2)
Aspire.Hosting.Milvus (2)
Aspire.Hosting.Milvus.Tests (6)
Aspire.Hosting.MongoDB (6)
Aspire.Hosting.MongoDB.Tests (7)
Aspire.Hosting.MySql (3)
Aspire.Hosting.MySql.Tests (7)
Aspire.Hosting.Nats (2)
Aspire.Hosting.Nats.Tests (3)
Aspire.Hosting.NodeJs (5)
Aspire.Hosting.NodeJs.Tests (7)
Aspire.Hosting.Oracle (3)
Aspire.Hosting.Oracle.Tests (5)
Aspire.Hosting.Orleans (4)
Aspire.Hosting.PostgreSQL (3)
Aspire.Hosting.PostgreSQL.Tests (12)
Aspire.Hosting.Python (11)
PythonAppResourceBuilderExtensions.cs (6)
11/// Provides extension methods for adding Python applications to an <see cref="IDistributedApplicationBuilder"/>.
18/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> to add the resource to.</param>
28/// this default can be specified by using the <see cref="AddPythonApp(IDistributedApplicationBuilder, string, string, string, string, string[])"/>
61this IDistributedApplicationBuilder builder, string name, string projectDirectory, string scriptPath, params string[] scriptArgs)
71/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> to add the resource to.</param>
110this IDistributedApplicationBuilder builder, string name, string projectDirectory, string scriptPath,
PythonProjectResourceBuilderExtensions.cs (5)
19/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> to add the resource to.</param>
29/// this default can be specified by using the <see cref="AddPythonProject(IDistributedApplicationBuilder, string, string, string, string, string[])"/>
63this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectDirectory, string scriptPath, params string[] scriptArgs)
73/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> to add the resource to.</param>
113this IDistributedApplicationBuilder builder, [ResourceName] string name, string projectDirectory, string scriptPath,
Aspire.Hosting.Python.Tests (2)
Aspire.Hosting.Qdrant (2)
Aspire.Hosting.Qdrant.Tests (8)
Aspire.Hosting.RabbitMQ (3)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Redis.Tests (14)
Aspire.Hosting.Seq (2)
Aspire.Hosting.SqlServer (2)
Aspire.Hosting.SqlServer.Tests (4)
Aspire.Hosting.Tests (110)
Schema\SchemaTests.cs (22)
17public static TheoryData<string, Action<IDistributedApplicationBuilder>> ApplicationSamples
21var data = new TheoryData<string, Action<IDistributedApplicationBuilder>>
23{ "BasicParameter", (IDistributedApplicationBuilder builder) =>
29{ "BasicSecretParameter", (IDistributedApplicationBuilder builder) =>
35{ "ConnectionStringParameter", (IDistributedApplicationBuilder builder) =>
41{ "BasicContainer", (IDistributedApplicationBuilder builder) =>
47{ "ContainerWithBuild", (IDistributedApplicationBuilder builder) =>
59{ "ContainerWithBuildAndBuildArgs", (IDistributedApplicationBuilder builder) =>
77{ "ContainerWithBuildAndSecretBuildArgs", (IDistributedApplicationBuilder builder) =>
92{ "ContainerWithVolume", (IDistributedApplicationBuilder builder) =>
98{ "ContainerWithBindMount", (IDistributedApplicationBuilder builder) =>
104{ "BasicContainerWithConnectionString", (IDistributedApplicationBuilder builder) =>
110{ "BasicDockerfile", (IDistributedApplicationBuilder builder) =>
116{ "ContainerWithContainerRuntimeArgs", (IDistributedApplicationBuilder builder) =>
122{ "BasicProject", (IDistributedApplicationBuilder builder) =>
128{ "BasicExecutable", (IDistributedApplicationBuilder builder) =>
134{ "VanillaProjectBasedContainerApp", (IDistributedApplicationBuilder builder) =>
142{ "CustomizedProjectBasedContainerApp", (IDistributedApplicationBuilder builder) =>
155{ "VanillaContainerBasedContainerApp", (IDistributedApplicationBuilder builder) =>
163{ "CustomizedContainerBasedContainerApp", (IDistributedApplicationBuilder builder) =>
176{ "VanillaBicepResource", (IDistributedApplicationBuilder builder) =>
207public void ValidateApplicationSamples(string testCaseName, Action<IDistributedApplicationBuilder> configurator)
Aspire.Hosting.Valkey (2)
Aspire.Hosting.Valkey.Tests (3)
AWS.AppHost (1)
AWSCDK.AppHost (1)
AzureContainerApps.AppHost (1)
AzureFunctionsEndToEnd.AppHost (1)
AzureSearch.AppHost (1)
AzureStorageEndToEnd.AppHost (1)
BicepSample.AppHost (1)
BrowserTelemetry.AppHost (1)
CdkSample.AppHost (1)
CosmosEndToEnd.AppHost (1)
CustomResources.AppHost (2)
Dapr.AppHost (1)
DatabaseMigration.AppHost (1)
Elasticsearch.AppHost (1)
EventHubs.AppHost (1)
HealthChecksSandbox.AppHost (1)
KafkaBasic.AppHost (1)
Keycloak.AppHost (1)
MilvusPlayground.AppHost (1)
Mongo.AppHost (1)
MySqlDb.AppHost (1)
Nats.AppHost (1)
OpenAIEndToEnd.AppHost (1)
OracleEndToEnd.AppHost (1)
Orleans.AppHost (1)
ParameterEndToEnd.AppHost (1)
PostgresEndToEnd.AppHost (1)
ProxylessEndToEnd.AppHost (1)
Python.AppHost (1)
Qdrant.AppHost (1)
Redis.AppHost (1)
Seq.AppHost (1)
SignalR.AppHost (1)
SqlServerEndToEnd.AppHost (1)
Stress.AppHost (2)
TestingAppHost1.AppHost (1)
TestProject.AppHost (2)
TestShop.AppHost (1)
WaitForSandbox.AppHost (1)
WebPubSub.AppHost (1)
WithDockerfile.AppHost (1)