PowerShell/src
Dongbo Wang c5f3a19caf Run PowerShell class static methods in the correct Runspace/SessionState (#4209)
Summary
----------
When the same script file gets executed in multiple Runspaces, the RuntimeType generated from the powershell class defined in the file will be shared among those Runspaces. For different Runspaces, different SessionState should be used to run the static methods.

Fix
---
We use the `SessionStateKeeper` to query for the correct `SessionState` to use for a static method call.
We already use `SessionStateKeeper` to track the `Runspace/SessionState` where a PowerShell class is defined, and thus we can leverage this for the static method invocation.
2017-07-14 18:05:48 -07:00
..
libpsl-native Make Get-ChildItem follow symlinks on demand, with checks for link loops (#4020) 2017-07-06 12:28:27 -07:00
Microsoft.Management.Infrastructure.CimCmdlets Refactor MSBuild project files by adding the common property file 'PowerShell.Common.props' (#4106) 2017-06-29 10:25:49 -07:00
Microsoft.PowerShell.Activities Resx - remove trailing white spaces and extra Newline at EOF (#4047) 2017-06-22 13:45:11 -07:00
Microsoft.PowerShell.Commands.Diagnostics Close eventLogSession and EventLogReader to unlock an etl file (#4034) 2017-07-06 23:05:41 -07:00
Microsoft.PowerShell.Commands.Management Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
Microsoft.PowerShell.Commands.Utility Add -SkipHeaderValidation switch to Invoke-WebRequest and Invoke-RestMethod to support adding headers without validating the header value. (#4085) 2017-07-14 10:24:20 -07:00
Microsoft.PowerShell.ConsoleHost Static analysis: Fix usage of XmlReader to ensure XmlResolver is null (#4108) 2017-07-06 09:09:57 -07:00
Microsoft.PowerShell.Core.Activities Migrate from project.json to MSBuild (#3398) 2017-03-23 13:04:52 -07:00
Microsoft.PowerShell.CoreCLR.AssemblyLoadContext Refactor MSBuild project files by adding the common property file 'PowerShell.Common.props' (#4106) 2017-06-29 10:25:49 -07:00
Microsoft.PowerShell.CoreCLR.Eventing Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
Microsoft.PowerShell.Diagnostics.Activities Migrate from project.json to MSBuild (#3398) 2017-03-23 13:04:52 -07:00
Microsoft.PowerShell.GraphicalHost Resx - remove trailing white spaces and extra Newline at EOF (#4047) 2017-06-22 13:45:11 -07:00
Microsoft.PowerShell.LocalAccounts Refactor MSBuild project files by adding the common property file 'PowerShell.Common.props' (#4106) 2017-06-29 10:25:49 -07:00
Microsoft.PowerShell.Management.Activities Migrate from project.json to MSBuild (#3398) 2017-03-23 13:04:52 -07:00
Microsoft.PowerShell.PSReadLine Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
Microsoft.PowerShell.ScheduledJob Resx - remove trailing white spaces and extra Newline at EOF (#4047) 2017-06-22 13:45:11 -07:00
Microsoft.PowerShell.SDK Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
Microsoft.PowerShell.Security Static analysis: Fix usage of XmlReader to ensure XmlResolver is null (#4108) 2017-07-06 09:09:57 -07:00
Microsoft.PowerShell.Security.Activities Migrate from project.json to MSBuild (#3398) 2017-03-23 13:04:52 -07:00
Microsoft.PowerShell.Utility.Activities Resx - remove trailing white spaces and extra Newline at EOF (#4047) 2017-06-22 13:45:11 -07:00
Microsoft.PowerShell.Workflow.ServiceCore Static analysis: Fix usage of XmlReader to ensure XmlResolver is null (#4108) 2017-07-06 09:09:57 -07:00
Microsoft.WSMan.Management Refactor MSBuild project files by adding the common property file 'PowerShell.Common.props' (#4106) 2017-06-29 10:25:49 -07:00
Microsoft.WSMan.Management.Activities Migrate from project.json to MSBuild (#3398) 2017-03-23 13:04:52 -07:00
Microsoft.WSMan.Runtime Refactor MSBuild project files by adding the common property file 'PowerShell.Common.props' (#4106) 2017-06-29 10:25:49 -07:00
Modules Get Pester fixes into PowerShell (#4227) 2017-07-11 17:27:52 -07:00
powershell Refactor PowerShell Core to use the default CoreCLR loader instead (#3903) 2017-06-05 20:59:30 -07:00
powershell-native Update native code to not call into PSAssemblyLoadContext (#3973) 2017-06-12 17:44:13 -07:00
powershell-unix Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
powershell-win-core Add Windows PowerShell PSModulePath by default on Windows (#4132) 2017-07-07 09:43:37 -07:00
ResGen Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00
Schemas Removed unused help providers and related classes. (#3795) 2017-05-17 17:27:48 -07:00
signing
System.Management.Automation Run PowerShell class static methods in the correct Runspace/SessionState (#4209) 2017-07-14 18:05:48 -07:00
TypeCatalogGen Move powershell to 2.0.0-preview3-25426-01 using the .NET CLI 2.0.0-preview2-006502 (#4144) 2017-06-30 13:07:14 -07:00