# AzureDaprComponentPublishingAnnotation Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Azure.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr.md)
- Type: [AzureDaprComponentPublishingAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md)
- Kind: `Constructors`
- Members: `1`

Represents an annotation that defines a publishing action for Azure Dapr components.

## AzureDaprComponentPublishingAnnotation(Action<AzureResourceInfrastructure>)

- Name: `Constructor(Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Azure.Dapr/AzureDaprComponentPublishingAnnotation.cs#L13)

Represents an annotation that defines a publishing action for Azure Dapr components.

```csharp
public record AzureDaprComponentPublishingAnnotation
{
    public AzureDaprComponentPublishingAnnotation(
        Action<AzureResourceInfrastructure> PublishingAction)
    {
        // ...
    }
}
```

## Parameters

- `PublishingAction` (`Action<AzureResourceInfrastructure>`)
  The action to be executed on the `Azure.AzureResourceInfrastructure` during the publishing process. This action allows for customization of the infrastructure configuration.

## Remarks

This annotation is used to specify a custom action that is executed during the publishing process of Azure Dapr components. The action is applied to the provided `Azure.AzureResourceInfrastructure` instance, allowing customization of the resource infrastructure.
