IDistributedApplicationResourceBuilderExtensions.WithOptions 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.
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.