# AzureConnectorNamespaceResource

- Module: [Aspire.Hosting.Azure.ConnectorNamespace](/reference/api/go/aspire.hosting.azure.connectornamespace.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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

## Definition

```go
type AzureConnectorNamespaceResource interface {
    Resource
}
```

## Embeds

- `Resource`

## Methods

- [AddConnection](/reference/api/go/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/addconnection.md) -- `method` -- Adds a connection to an Azure Connector Namespace.
  ```go
  AddConnection(name string, connectorName string, options ...*AzureConnectorNamespaceConnectionOptions) AzureConnectorNamespaceConnectionResource
  ```
- [AddMcpServerConfig](/reference/api/go/aspire.hosting.azure.connectornamespace/azureconnectornamespaceresource/addmcpserverconfig.md) -- `method` -- Adds a managed MCP server configuration to an Azure Connector Namespace.
  ```go
  AddMcpServerConfig(name string, options ...*AzureConnectorNamespaceMcpServerConfigOptions) AzureConnectorNamespaceMcpServerConfigResource
  ```
