IDistributedApplicationBuilderExtensions.AddDapr Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.