Skip to content

Commit

Permalink
1.1.9 - Changed: RunspacePool.SetMaxRunspaces = ThreadPool.GetMaxThreads
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelCheng committed Sep 22, 2017
1 parent 3d0f9fa commit e2bf513
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sample/PSWebApi.OwinSample/PSWebApi.OwinSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DataBooster.PSWebApi, Version=1.1.8.3, Culture=neutral, PublicKeyToken=ee1eb06d9feeb8dc, processorArchitecture=MSIL">
<HintPath>..\..\packages\DataBooster.PSWebApi.1.1.8.3\lib\net45\DataBooster.PSWebApi.dll</HintPath>
<Reference Include="DataBooster.PSWebApi, Version=1.1.9.0, Culture=neutral, PublicKeyToken=ee1eb06d9feeb8dc, processorArchitecture=MSIL">
<HintPath>..\..\packages\DataBooster.PSWebApi.1.1.9\lib\net45\DataBooster.PSWebApi.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.CSharp" />
Expand Down
4 changes: 2 additions & 2 deletions sample/PSWebApi.OwinSample/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.8.3")]
[assembly: AssemblyFileVersion("1.1.8.3")]
[assembly: AssemblyVersion("1.1.9.0")]
[assembly: AssemblyFileVersion("1.1.9.0")]
2 changes: 1 addition & 1 deletion sample/PSWebApi.OwinSample/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DataBooster.PSWebApi" version="1.1.8.3" targetFramework="net45" />
<package id="DataBooster.PSWebApi" version="1.1.9" targetFramework="net45" />
<package id="Microsoft.AspNet.Cors" version="5.2.3" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" />
Expand Down
2 changes: 1 addition & 1 deletion src/DataBooster.PSWebApi/DataBooster.PSWebApi.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<description>$description$</description>
<releaseNotes>https://github.com/DataBooster/PS-WebApi/releases</releaseNotes>
<copyright>Copyright 2016-2017 Abel Cheng</copyright>
<tags>PowerShell ASP.NET Web API JSON XML CSV Text HTML REST APIs CommandLine CMD Batch bat exe ps1</tags>
<tags>PowerShell ASP.NET Web API JSON XML CSV Text RESTful CommandLine CMD Batch bat exe ps1</tags>
</metadata>
</package>
7 changes: 6 additions & 1 deletion src/DataBooster.PSWebApi/PSControllerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ public static partial class PSControllerExtensions

static PSControllerExtensions()
{
_runspacePool = RunspaceFactory.CreateRunspacePool();
int maxWorkerThreads, maxIOThreads;

ThreadPool.GetMaxThreads(out maxWorkerThreads, out maxIOThreads);

_runspacePool = RunspaceFactory.CreateRunspacePool(1, maxWorkerThreads);
_runspacePool.Open();

_escapedNewLine = Uri.EscapeDataString(Environment.NewLine).ToLower();
}

Expand Down
6 changes: 3 additions & 3 deletions src/DataBooster.PSWebApi/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.8.3")]
[assembly: AssemblyFileVersion("1.1.8.3")]
[assembly: AssemblyInformationalVersion("1.1.8.3")]
[assembly: AssemblyVersion("1.1.9.0")]
[assembly: AssemblyFileVersion("1.1.9.0")]
[assembly: AssemblyInformationalVersion("1.1.9.0")]

0 comments on commit e2bf513

Please sign in to comment.