# BunAppResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Bun](/reference/api/csharp/communitytoolkit.aspire.hosting.bun.md)
- Type: [BunAppResource](/reference/api/csharp/communitytoolkit.aspire.hosting.bun/bunappresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Bun app resource.

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

## BunAppResource(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/0a6068734d939cdf93e8a6a0cab67cf1e5c76953/src/CommunityToolkit.Aspire.Hosting.Bun/BunAppResource.cs#L9)

Represents a Bun app resource.

```csharp
public class BunAppResource
{
    public BunAppResource(
        string name,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory for the Bun app to launch from.
