Share via


IDistributedApplicationBuilderExtensions.AddDapr Method

Definition

Adds Dapr support to Aspire, including the ability to add Dapr sidecar to application resource.

public static Aspire.Hosting.IDistributedApplicationBuilder AddDapr (this Aspire.Hosting.IDistributedApplicationBuilder builder, Action<Aspire.Hosting.Dapr.DaprOptions>? configure = default);
static member AddDapr : Aspire.Hosting.IDistributedApplicationBuilder * Action<Aspire.Hosting.Dapr.DaprOptions> -> Aspire.Hosting.IDistributedApplicationBuilder
<Extension()>
Public Function AddDapr (builder As IDistributedApplicationBuilder, Optional configure As Action(Of DaprOptions) = Nothing) As IDistributedApplicationBuilder

Parameters

builder
IDistributedApplicationBuilder

The distributed application builder instance.

configure
Action<DaprOptions>

Callback to configure dapr options.

Returns

The distributed application builder instance.

Applies to