IDistributedApplicationResourceBuilderExtensions Methods
ClassMethods6 members
Extensions to
ApplicationModel.IResourceBuilder`1 related to Dapr. WithDaprSidecar(IResourceBuilder<T>, string) Section titled WithDaprSidecar(IResourceBuilder<T>, string)extensionIResourceBuilder<T> Ensures that a Dapr sidecar is started for the resource.
public static class IDistributedApplicationResourceBuilderExtensions{ public static IResourceBuilder<T> WithDaprSidecar<T>( this IResourceBuilder<T> builder, string appId) { // ... }}Parameters
builderIResourceBuilder<T> The resource builder instance.appId stringThe ID for the application, used for service discovery.Returns
IResourceBuilder<T> The resource builder instance.WithDaprSidecar(IResourceBuilder<T>, DaprSidecarOptions?) Section titled WithDaprSidecar(IResourceBuilder<T>, DaprSidecarOptions?)extensionIResourceBuilder<T> Ensures that a Dapr sidecar is started for the resource.
public static class IDistributedApplicationResourceBuilderExtensions{ public static IResourceBuilder<T> WithDaprSidecar<T>( this IResourceBuilder<T> builder, DaprSidecarOptions? options = null) { // ... }}Parameters
builderIResourceBuilder<T> The resource builder instance.optionsDaprReturns
IResourceBuilder<T> The resource builder instance.WithDaprSidecar(IResourceBuilder<T>, Action<IResourceBuilder<IDaprSidecarResource>>) Section titled WithDaprSidecar(IResourceBuilder<T>, Action<IResourceBuilder<IDaprSidecarResource>>)extensionIResourceBuilder<T> Ensures that a Dapr sidecar is started for the resource.
public static class IDistributedApplicationResourceBuilderExtensions{ public static IResourceBuilder<T> WithDaprSidecar<T>( this IResourceBuilder<T> builder, Action<IResourceBuilder<IDaprSidecarResource>> configureSidecar) { // ... }}Parameters
builderIResourceBuilder<T> The resource builder instance.configureSidecar Action<IResourceBuilder<IDaprSidecarResource>> A callback that can be use to configure the Dapr sidecar.Returns
IResourceBuilder<T> The resource builder instance.WithOptions(IResourceBuilder<IDaprSidecarResource>, DaprSidecarOptions) Section titled WithOptions(IResourceBuilder<IDaprSidecarResource>, DaprSidecarOptions)extensionIResourceBuilder<IDaprSidecarResource> Configures a Dapr sidecar with the specified options.
public static class IDistributedApplicationResourceBuilderExtensions{ public static IResourceBuilder<IDaprSidecarResource> WithOptions( this IResourceBuilder<IDaprSidecarResource> builder, DaprSidecarOptions options) { // ... }}Parameters
builderIResourceBuilder<IDaprSidecarResource> The Dapr sidecar resource builder instance.optionsDaprReturns
IResourceBuilder<IDaprSidecarResource> The Dapr sidecar resource builder instance.WithReference(IResourceBuilder<TDestination>, IResourceBuilder<IDaprComponentResource>) Section titled WithReference(IResourceBuilder<TDestination>, IResourceBuilder<IDaprComponentResource>)extensionIResourceBuilder<TDestination> Associates a Dapr component with the Dapr sidecar started for the resource.
public static class IDistributedApplicationResourceBuilderExtensions{ public static IResourceBuilder<TDestination> WithReference<TDestination>( this IResourceBuilder<TDestination> builder, IResourceBuilder<IDaprComponentResource> component) { // ... }}Parameters
builderIResourceBuilder<TDestination> The resource builder instance.componentIResourceBuilder<IDaprComponentResource> The Dapr component to use with the sidecar.WithReference(IResourceBuilder<IDaprSidecarResource>, IResourceBuilder<IDaprComponentResource>) Section titled WithReference(IResourceBuilder<IDaprSidecarResource>, IResourceBuilder<IDaprComponentResource>)extensionIResourceBuilder<IDaprSidecarResource> Associates a Dapr component with the Dapr sidecar started for the resource.
public static class IDistributedApplicationResourceBuilderExtensions{ public static IResourceBuilder<IDaprSidecarResource> WithReference( this IResourceBuilder<IDaprSidecarResource> builder, IResourceBuilder<IDaprComponentResource> component) { // ... }}Parameters
builderIResourceBuilder<IDaprSidecarResource> The resource builder instance.componentIResourceBuilder<IDaprComponentResource> The Dapr component to use with the sidecar.