# AzureWebPubSubEmulatorResource Constructors

- Package: [Aspire.Hosting.Azure.WebPubSub](/reference/api/csharp/aspire.hosting.azure.webpubsub.md)
- Type: [AzureWebPubSubEmulatorResource](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubemulatorresource.md)
- Kind: `Constructors`
- Members: `1`

Wraps an [AzureWebPubSubResource](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md) in a type that exposes container extension methods.

<a id="constructor"></a>
<a id="constructor-azurewebpubsubresource"></a>

## AzureWebPubSubEmulatorResource(AzureWebPubSubResource)

- Name: `Constructor(AzureWebPubSubResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.WebPubSub/AzureWebPubSubEmulatorResource.cs#L12-L17)

Wraps an [AzureWebPubSubResource](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md) in a type that exposes container extension methods.

```csharp
public class AzureWebPubSubEmulatorResource
{
    public AzureWebPubSubEmulatorResource(
        AzureWebPubSubResource innerResource)
    {
        // ...
    }
}
```

## Parameters

- `innerResource` ([AzureWebPubSubResource](/reference/api/csharp/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md))
  The inner resource used to store annotations.
