AzureDaprHostingExtensions Methods
ClassMethods3 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>)extensionIResourceBuilder<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
builderIResourceBuilder<IDaprComponentResource>The resource builder.namestringThe name of the Dapr resource.configureInfrastructureAction<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
builderIResourceBuilder<IDaprComponentResource>The resource builder.daprComponentContainerAppManagedEnvironmentDaprComponentThe Dapr component to add scopes to.CreateDaprComponent(string, BicepValue<string>, string, string)Section titled CreateDaprComponent(string, BicepValue<string>, string, string)staticContainerAppManagedEnvironmentDaprComponent 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
bicepIdentifierstringThe name of the resource.nameBicepValue<string>The name of the dapr componentcomponentTypestringThe type of the Dapr component.versionstringThe version of the Dapr component.Returns
ContainerAppManagedEnvironmentDaprComponentA new instance of AppContainers.ContainerAppManagedEnvironmentDaprComponent.