# AzureConnectorNamespaceResource Constructors

- Package: [Aspire.Hosting.Azure.ConnectorNamespace](/reference/api/csharp/aspire.hosting.azure.connectornamespace.md)
- Type: [AzureConnectorNamespaceResource](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure Connector Namespace backed by a `Microsoft.Web/connectorGateways` resource.

<a id="constructor"></a>
<a id="constructor-string-action-azureresourceinfrastructure"></a>

## AzureConnectorNamespaceResource(string, Action<AzureResourceInfrastructure>)

- Name: `Constructor(string, Action<AzureResourceInfrastructure>)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Azure.ConnectorNamespace/AzureConnectorNamespaceResource.cs#L21-L47)

Initializes a new instance of the [AzureConnectorNamespaceResource](/reference/api/csharp/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource.md) class.

```csharp
public sealed class AzureConnectorNamespaceResource
{
    public AzureConnectorNamespaceResource(
        string name,
        Action<AzureResourceInfrastructure> configureInfrastructure)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The Aspire resource name.
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
  The callback that configures Azure provisioning infrastructure.
