ParallelBatchProcessor 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ParallelBatchProcessor --version 1.0.1
NuGet\Install-Package ParallelBatchProcessor -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ParallelBatchProcessor" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ParallelBatchProcessor --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ParallelBatchProcessor, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ParallelBatchProcessor as a Cake Addin
#addin nuget:?package=ParallelBatchProcessor&version=1.0.1
// Install ParallelBatchProcessor as a Cake Tool
#tool nuget:?package=ParallelBatchProcessor&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
using System.Linq;
using System.Threading;
using ParallelBatchProcessor.Processors;
namespace Test
{
public class Demo : IProcessor<int>
{
public void Test()
{
int threadCount = 3;
// list of ids to process
var ids = Enumerable.Range(1, 100).ToList();
var processor = this;
var progressFileName = "c:\\temp\\processed.txt";
var consoleExecutor = new ConsoleExecutor();
consoleExecutor.Process(threadCount, ids, processor, progressFileName);
}
/// <summary>
/// Process one id
/// </summary>
/// <returns>true if success, false if failed. Failed items will be retried on next run</returns>
public bool Process(int id)
{
Thread.Sleep(1000);
return true;
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
- System.Text.Json (>= 5.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
First version of this package