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(int minRunspaces, int maxRunspaces, 
    InitialSessionState? initialSessionState = null, 
    PSThreadOptions threadOptions = PSThreadOptions.ReuseThread)
parameter description
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