Condividi tramite


IDistributedApplicationResourceBuilderExtensions.WithOptions Method

Definition

Configures a Dapr sidecar with the specified options.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Dapr.IDaprSidecarResource> WithOptions (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Dapr.IDaprSidecarResource> builder, Aspire.Hosting.Dapr.DaprSidecarOptions options);
static member WithOptions : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Dapr.IDaprSidecarResource> * Aspire.Hosting.Dapr.DaprSidecarOptions -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Dapr.IDaprSidecarResource>
<Extension()>
Public Function WithOptions (builder As IResourceBuilder(Of IDaprSidecarResource), options As DaprSidecarOptions) As IResourceBuilder(Of IDaprSidecarResource)

Parameters

builder
IResourceBuilder<IDaprSidecarResource>

The Dapr sidecar resource builder instance.

options
DaprSidecarOptions

Options for configuring the Dapr sidecar.

Returns

The Dapr sidecar resource builder instance.

Applies to