Skip to content

Commit e2bf513

Browse files
committed
1.1.9 - Changed: RunspacePool.SetMaxRunspaces = ThreadPool.GetMaxThreads
1 parent 3d0f9fa commit e2bf513

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

sample/PSWebApi.OwinSample/PSWebApi.OwinSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
<WarningLevel>4</WarningLevel>
4141
</PropertyGroup>
4242
<ItemGroup>
43-
<Reference Include="DataBooster.PSWebApi, Version=1.1.8.3, Culture=neutral, PublicKeyToken=ee1eb06d9feeb8dc, processorArchitecture=MSIL">
44-
<HintPath>..\..\packages\DataBooster.PSWebApi.1.1.8.3\lib\net45\DataBooster.PSWebApi.dll</HintPath>
43+
<Reference Include="DataBooster.PSWebApi, Version=1.1.9.0, Culture=neutral, PublicKeyToken=ee1eb06d9feeb8dc, processorArchitecture=MSIL">
44+
<HintPath>..\..\packages\DataBooster.PSWebApi.1.1.9\lib\net45\DataBooster.PSWebApi.dll</HintPath>
4545
<Private>True</Private>
4646
</Reference>
4747
<Reference Include="Microsoft.CSharp" />

sample/PSWebApi.OwinSample/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
//
3232
// You can specify all the values or you can default the Revision and Build Numbers
3333
// by using the '*' as shown below:
34-
[assembly: AssemblyVersion("1.1.8.3")]
35-
[assembly: AssemblyFileVersion("1.1.8.3")]
34+
[assembly: AssemblyVersion("1.1.9.0")]
35+
[assembly: AssemblyFileVersion("1.1.9.0")]

sample/PSWebApi.OwinSample/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="DataBooster.PSWebApi" version="1.1.8.3" targetFramework="net45" />
3+
<package id="DataBooster.PSWebApi" version="1.1.9" targetFramework="net45" />
44
<package id="Microsoft.AspNet.Cors" version="5.2.3" targetFramework="net45" />
55
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
66
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" />

src/DataBooster.PSWebApi/DataBooster.PSWebApi.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<description>$description$</description>
1313
<releaseNotes>https://github.com/DataBooster/PS-WebApi/releases</releaseNotes>
1414
<copyright>Copyright 2016-2017 Abel Cheng</copyright>
15-
<tags>PowerShell ASP.NET Web API JSON XML CSV Text HTML REST APIs CommandLine CMD Batch bat exe ps1</tags>
15+
<tags>PowerShell ASP.NET Web API JSON XML CSV Text RESTful CommandLine CMD Batch bat exe ps1</tags>
1616
</metadata>
1717
</package>

src/DataBooster.PSWebApi/PSControllerExtensions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ public static partial class PSControllerExtensions
2828

2929
static PSControllerExtensions()
3030
{
31-
_runspacePool = RunspaceFactory.CreateRunspacePool();
31+
int maxWorkerThreads, maxIOThreads;
32+
33+
ThreadPool.GetMaxThreads(out maxWorkerThreads, out maxIOThreads);
34+
35+
_runspacePool = RunspaceFactory.CreateRunspacePool(1, maxWorkerThreads);
3236
_runspacePool.Open();
37+
3338
_escapedNewLine = Uri.EscapeDataString(Environment.NewLine).ToLower();
3439
}
3540

src/DataBooster.PSWebApi/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.1.8.3")]
36-
[assembly: AssemblyFileVersion("1.1.8.3")]
37-
[assembly: AssemblyInformationalVersion("1.1.8.3")]
35+
[assembly: AssemblyVersion("1.1.9.0")]
36+
[assembly: AssemblyFileVersion("1.1.9.0")]
37+
[assembly: AssemblyInformationalVersion("1.1.9.0")]

0 commit comments

Comments
 (0)