# PowerShellRunspacePoolResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Type: [PowerShellRunspacePoolResource](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a PowerShell runspace pool resource.

## PowerShellRunspacePoolResource(string, PSLanguageMode, int, int)

- Name: `Constructor(string, PSLanguageMode, int, int)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResource.cs#L19-L34)

Represents a PowerShell runspace pool resource.

```csharp
public class PowerShellRunspacePoolResource
{
    public PowerShellRunspacePoolResource(
        string name,
        PSLanguageMode languageMode = 3,
        int minRunspaces = 1,
        int maxRunspaces = 5)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `languageMode` (`PSLanguageMode`) `optional`
- `minRunspaces` (`int`) `optional`
- `maxRunspaces` (`int`) `optional`
