AzureDaprHostingExtensions Methods
Class Methods 3 members
Provides extension methods for configuring Dapr components in an Azure hosting environment.
AddAzureDaprResource(IResourceBuilder<IDaprComponentResource>, string, Action<AzureResourceInfrastructure>) Section titled AddAzureDaprResource(IResourceBuilder<IDaprComponentResource>, string, Action<AzureResourceInfrastructure>) extension IResourceBuilder<AzureDaprComponentResource> Adds an Azure Dapr resource to the resource builder.
public static class AzureDaprHostingExtensions{ public static IResourceBuilder<AzureDaprComponentResource> AddAzureDaprResource( this IResourceBuilder<IDaprComponentResource> builder, string name, Action<AzureResourceInfrastructure> configureInfrastructure) { // ... }}Parameters
builder IResourceBuilder<IDaprComponentResource> The resource builder. name string The name of the Dapr resource. configureInfrastructure Action<AzureResourceInfrastructure> The action to configure the Azure resource infrastructure. Returns
IResourceBuilder<AzureDaprComponentResource> The updated resource builder. AddScopes(IResourceBuilder<IDaprComponentResource>, ContainerAppManagedEnvironmentDaprComponent) Section titled AddScopes(IResourceBuilder<IDaprComponentResource>, ContainerAppManagedEnvironmentDaprComponent) extension Adds scopes to the specified Dapr component in a container app managed environment.
public static class AzureDaprHostingExtensions{ public static void AddScopes( this IResourceBuilder<IDaprComponentResource> builder, ContainerAppManagedEnvironmentDaprComponent daprComponent) { // ... }}Parameters
builder IResourceBuilder<IDaprComponentResource> The resource builder. daprComponent ContainerAppManagedEnvironmentDaprComponent The Dapr component to add scopes to. CreateDaprComponent(string, BicepValue<string>, string, string) Section titled CreateDaprComponent(string, BicepValue<string>, string, string) static ContainerAppManagedEnvironmentDaprComponent Creates a new Dapr component for a container app managed environment.
public static class AzureDaprHostingExtensions{ public static ContainerAppManagedEnvironmentDaprComponent CreateDaprComponent( string bicepIdentifier, BicepValue<string> name, string componentType, string version) { // ... }}Parameters
bicepIdentifier string The name of the resource. name BicepValue<string> The name of the dapr component componentType string The type of the Dapr component. version string The version of the Dapr component. Returns
ContainerAppManagedEnvironmentDaprComponent A new instance of AppContainers.ContainerAppManagedEnvironmentDaprComponent.