# AzureSignalRResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.SignalR](/reference/api/csharp/aspire.hosting.azure.signalr.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.SignalR/AzureSignalRResource.cs)
- Inherits: `AzureProvisioningResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithEndpoints`, `IValueProvider`, `IValueWithReferences`, `IAzurePrivateEndpointTarget`

Represents an Azure SignalR resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class AzureSignalRResource
    : Aspire.Hosting.Azure.AzureProvisioningResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences,
      Aspire.Hosting.Azure.IAzurePrivateEndpointTarget
{
    // ...
}
```

## Constructors

- [AzureSignalRResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Represents an Azure SignalR resource.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string template for the manifest for Azure SignalR.
- [HostName](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/properties.md#hostname) : `BicepOutputReference` `get` -- Gets the "connectionString" output reference from the bicep template for Azure SignalR.
- [Id](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/properties.md#id) : `BicepOutputReference` `get` -- Gets the "id" output reference for the resource.
- [IsEmulator](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/properties.md#isemulator) : `bool` `get` -- Gets a value indicating whether the Azure SignalR resource is running in the local emulator.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.
- [UriExpression](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the endpoint URI expression for the SignalR service.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.signalr/azuresignalrresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource`
