# AzureDaprComponentResource Constructors

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

Represents an Azure Dapr component resource.

## AzureDaprComponentResource(string, Action<AzureResourceInfrastructure>)

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

Represents an Azure Dapr component resource.

```csharp
public class AzureDaprComponentResource
{
    public AzureDaprComponentResource(
        string bicepIdentifier,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `bicepIdentifier` (`string`)
  The Bicep identifier.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  The action to configure the Azure resource infrastructure.

## Remarks

Initializes a new instance of the [AzureDaprComponentResource](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentresource.md) class.
