Ascentis.Infrastructure
2.9.0.22
See the version list below for details.
dotnet add package Ascentis.Infrastructure --version 2.9.0.22
NuGet\Install-Package Ascentis.Infrastructure -Version 2.9.0.22
<PackageReference Include="Ascentis.Infrastructure" Version="2.9.0.22" />
paket add Ascentis.Infrastructure --version 2.9.0.22
#r "nuget: Ascentis.Infrastructure, 2.9.0.22"
// Install Ascentis.Infrastructure as a Cake Addin #addin nuget:?package=Ascentis.Infrastructure&version=2.9.0.22 // Install Ascentis.Infrastructure as a Cake Tool #tool nuget:?package=Ascentis.Infrastructure&version=2.9.0.22
Ascentis.Infrastructure Library
This library offers a a few general purpose components:
AsyncDisposer
Use this static class to dispose of IDisposable objects using async semantics. When to use this? If you use third party software which you can't modify that has caused you trouble when disposing objects on an event which later makes software beyond your control throw exceptions because somewhere in the call stack it tries to use the diposed object. With this class you can enqueue the IDisposable instance in the AsyncDisposer queue and it will be guaranteed to stay in queue for a specified global period of time before being take for disposal. Tune the timing in a way that gives time enough for the calling procedure in the stack to complete and return to the caller.
A second class part of this package is ConcurrentObjectAccessor<>. This class allows to wrap an object within it and allow for protected access to execute functions within a readlock. This allows usage of method SwapAndExecute() which allow to swap safely the underlying reference wrapped. When to use this? When dealing with COM, COM+ or DCOM objects prone to crashing or suffering from network partitions. With this class the COM object can be isolated behing a wrapper relying on ConcurrentObjectAccessor and the low level object can be replaced transparently upon detection of partition exception.
Retrier
This class allows to wrap function or procedure calls in a try-catch block that would retry operations based on on a delegate function returning true or false. Can be combined with ConcurrentObjectAccessor to replace transparently a low level object upon certain conditions.
ConcurrentObjectAccessor
This class allows to control usage of an object reference permitting multiple concurrent threads using it for reading its value (and executing code with it), while only one thread can write to the reference at the same time. The main purpose is to replace a failing object transparently upon detection of a faulty condition. A concrete example is a COM+ object which crashed. The reference to this object is worthless until replaced by a new COM+ object instance.
SolidComPlus
This class encapsulates a COM+ object instance allowing the user to implement automatic swapping of a dead object.
BoundedParallel
Use instead of standard static Parallel class to gain control of the number of concurrent calls that be executed using Parallel static class. This allows to control the number of threads from the default .NET threadpool to avoid a runaway scenario where .NET has to keep trying to add more threads. If a high number of callers attempt multiple concurrent calls to Parallel methods it can fall into what's called "Hill Climbing" algorithm causing high contention as .NET tries to add more threads slowly
AutoInit
Small utilitarian class that allow to initialize automatically a reference to an object provided the reference, a generic type and optional constructor parameters. This class depends on GenericObjectBuilder static class.
GenericObjectBuilder
This class allows to build an object of any class provided the generic type and either parameters or an array of parameter types and parameters. This class will build expression tree based constructors and cache them based on the signature of the return type and the parameter types passed to the constructor.
Resettable
This class allows to "reset" the state of something using a small helper IDisposable interface that upon leaving the using scope it will call the a reset delegate method.
ConcurrentIncrementableResettable
Utilitarian class relying on Resettable to allow incrementing an int in a thread safe manner and automatically decrementing the value by the same amount when a helper object (Resettable) leaves the using scope.
Pool
Generalized Pool class. Will build instances lazily and wait for new objects returned to the pool when exhausted. Usage relies on simple Acquire() and Release() methods.
Conveyor
Abstraction on top of a Thread that allows for continuous processing of objects passed by calling InsertPacket method.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Ascentis.Infrastructure:
Package | Downloads |
---|---|
Ascentis.SQLRewriteInterceptor
Utility class to use with ADO.NET that allows pre-processing any SQL used vua SqlCommand class in order to allow optimization/hinting in production environments without recompiling code |
|
Ascentis.ExternalCache
External cache class using .NET COM+ |
|
Ascentis.Infrastructure.Sql
SqlClient and SQLite specific set of classes extending behavior of DataPipeline and DataReplicator classes provided in Ascentis.Infrastructure base package |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.13.2.29 | 759 | 9/18/2020 |
2.13.1.28 | 549 | 9/16/2020 |
2.13.0.27 | 560 | 9/16/2020 |
2.12.0.26 | 489 | 9/14/2020 |
2.11.0.25 | 479 | 9/14/2020 |
2.11.0.24 | 501 | 9/14/2020 |
2.10.0.23 | 949 | 9/7/2020 |
2.9.0.22 | 3,184 | 8/26/2020 |
2.8.3.21 | 503 | 8/25/2020 |
2.8.2.20 | 568 | 8/21/2020 |
2.8.0.19 | 510 | 8/21/2020 |
2.7.14.18 | 477 | 8/20/2020 |
2.7.13.17 | 477 | 8/18/2020 |
2.7.12.16 | 528 | 8/18/2020 |
2.7.11.15 | 516 | 8/17/2020 |
2.7.10.14 | 485 | 8/17/2020 |
2.7.9.13 | 634 | 8/17/2020 |
2.7.8.12 | 549 | 8/14/2020 |
2.7.7.11 | 549 | 8/14/2020 |
2.7.6.10 | 565 | 8/14/2020 |
2.7.5.9 | 505 | 8/13/2020 |
2.7.4.8 | 547 | 8/13/2020 |
2.7.3.7 | 487 | 8/13/2020 |
2.7.2.6 | 476 | 8/12/2020 |
2.7.1.5 | 473 | 8/12/2020 |
2.6.1.4 | 577 | 8/11/2020 |
2.6.0.3 | 668 | 8/11/2020 |
2.5.0.2 | 499 | 8/4/2020 |
2.4.12.1 | 569 | 8/1/2020 |
2.4.11 | 542 | 7/30/2020 |
2.4.10 | 567 | 7/28/2020 |
2.4.9 | 642 | 7/26/2020 |
2.4.8.7 | 682 | 7/25/2020 |
2.4.8.6 | 548 | 7/24/2020 |
2.4.8.5 | 556 | 7/23/2020 |
2.4.8.4 | 515 | 7/22/2020 |
2.4.8.3 | 537 | 7/22/2020 |
2.4.8.2 | 592 | 7/21/2020 |
2.4.8.1 | 500 | 7/21/2020 |
2.4.8 | 498 | 7/21/2020 |
2.4.7.1 | 527 | 7/21/2020 |
2.4.7 | 521 | 7/21/2020 |
2.4.6.1 | 516 | 7/21/2020 |
2.4.6 | 503 | 7/21/2020 |
2.4.5 | 521 | 7/20/2020 |
2.4.4.1 | 671 | 7/13/2020 |
2.4.4 | 898 | 7/7/2020 |
2.4.3.1 | 489 | 6/30/2020 |
2.4.3 | 488 | 6/30/2020 |
2.4.2 | 1,360 | 6/29/2020 |
2.4.1 | 513 | 6/29/2020 |
2.4.0 | 525 | 6/29/2020 |
2.3.0 | 2,187 | 6/22/2020 |
2.2.0 | 502 | 6/18/2020 |
2.1.0 | 480 | 6/16/2020 |
2.0.0 | 528 | 6/15/2020 |
Improved handling of native business objects serialized to object[]