public RunspaceSettings(RunspacePool pool) : this() { if (pool == null) { return; } this.ApartmentState = pool.ApartmentState; this.CleanupInterval = pool.CleanupInterval; this.InitialSessionState = pool.InitialSessionState; this.InstanceId = pool.InstanceId; this.IsDisposed = pool.IsDisposed; this.PoolSize = pool.GetMaxRunspaces(); this.RunspacePoolAvailability = pool.RunspacePoolAvailability; this.RunspacePoolStateInfo = pool.RunspacePoolStateInfo; this.ThreadOptions = pool.ThreadOptions; }