KestrunRunspacePoolManager constructor

Initializes a new instance of the KestrunRunspacePoolManager class with the specified minimum and maximum runspaces, initial session state, and thread options.

public KestrunRunspacePoolManager(KestrunHost host, int minRunspaces, int maxRunspaces, 
    InitialSessionState? initialSessionState = null, 
    PSThreadOptions threadOptions = PSThreadOptions.ReuseThread)
parameter description
host The Kestrun host instance.
minRunspaces The minimum number of runspaces to maintain in the pool.
maxRunspaces The maximum number of runspaces allowed in the pool.
initialSessionState The initial session state for each runspace (optional).
threadOptions The thread affinity strategy for runspaces (optional).

See Also