# PowerShellRunspacePoolResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Version: `13.4.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.PowerShell`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResource.cs)
- Inherits: `Resource`
- Implements: `IResource`, `IResourceWithWaitSupport`, `IDisposable`

Represents a PowerShell runspace pool resource.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.PowerShell;

public class PowerShellRunspacePoolResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport,
      System.IDisposable
{
    // ...
}
```

## Constructors

- [PowerShellRunspacePoolResource(string, PSLanguageMode, int, int)](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource/constructors.md#constructor-string-pslanguagemode-int-int) -- Represents a PowerShell runspace pool resource.

## Properties

- [LanguageMode](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource/properties.md#languagemode) : `PSLanguageMode` `get` -- Specifies the language mode for the PowerShell runspace pool.
- [MaxRunspaces](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource/properties.md#maxrunspaces) : `int` `get` -- Specifies the maximum number of runspaces in the pool.
- [MinRunspaces](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource/properties.md#minrunspaces) : `int` `get` -- Specifies the minimum number of runspaces in the pool.
- [Pool](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource/properties.md#pool) : `RunspacePool?` `get` -- A reference to the runspace pool created by this resource.
