# AzureDaprComponentPublishingAnnotation

- Kind: `record`
- Package: [CommunityToolkit.Aspire.Hosting.Azure.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr.md)
- Version: `13.0.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.Azure.Dapr`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Azure.Dapr/AzureDaprComponentPublishingAnnotation.cs)
- Implements: `IResourceAnnotation`, `IEquatable<AzureDaprComponentPublishingAnnotation>`

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

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.Azure.Dapr;

public record AzureDaprComponentPublishingAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation,
      System.IEquatable<CommunityToolkit.Aspire.Hosting.Azure.Dapr.AzureDaprComponentPublishingAnnotation>
{
    // ...
}
```

## 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.

## Constructors

- [AzureDaprComponentPublishingAnnotation(Action<AzureResourceInfrastructure>)](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/constructors.md#constructor-action-azureresourceinfrastructure) -- Represents an annotation that defines a publishing action for Azure Dapr components.

## Properties

- [PublishingAction](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/properties.md#publishingaction) : `Action<AzureResourceInfrastructure>` `get; init` -- The action to be executed on the `Azure.AzureResourceInfrastructure` during the publishing process. This action allows for customization of the infrastructure configuration.

## Methods

- [<Clone>$](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#clone) : [AzureDaprComponentPublishingAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md) `virtual`
- [Deconstruct(Action<AzureResourceInfrastructure>)](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#deconstruct-action-azureresourceinfrastructure)
- [Equals(object?)](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(AzureDaprComponentPublishingAnnotation?)](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#equals-azuredaprcomponentpublishingannotation) : `bool` `virtual` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(AzureDaprComponentPublishingAnnotation?, AzureDaprComponentPublishingAnnotation?)](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#op-equality-azuredaprcomponentpublishingannotation-azuredaprcomponentpublishingannotation) : `bool` `static`
- [op_Inequality(AzureDaprComponentPublishingAnnotation?, AzureDaprComponentPublishingAnnotation?)](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#op-inequality-azuredaprcomponentpublishingannotation-azuredaprcomponentpublishingannotation) : `bool` `static`
- [ToString](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation/methods.md#tostring) : `string` -- Returns a string that represents the current object.
