27 packages tagged with “lifetime”
JetBrains Core library for graceful disposal, concurrency and reactive programming
The Lifetime Scoping package adds an advanced new lifestyle called 'Lifetime Scope', which allows instances to live within an explicitly defined thread-specific scope and get disposed when this scope ends.
.Nurse Injector is auto dependency injector for .Net, makes your code clean & more manageable dependencies.
MEF Lifetime Policy Extensions
Adds Windows Forms support to the .NET Generic Host.
A simple and flexible way to manage your Entity Framework DbContext instances.
A simple and flexible way to manage your NHibernate ISession instances.
A small library that implements an improved version of System.Threading.CancellationToken with support for removable registrations, to allow for garbage collection in the presence of long-lived tokens, plus some related utilities. Motivation: cancellation tokens can be the source of memory "leaks", because an unbounded number of completed operations may have registered now-pointless callbacks on a token that can't be released or cancelled. The callbacks may reference all kinds of data, preventing effective garbage collection. Using a Lifetime allows fixing these issues because callback registrations can be given lifetimes of their own. Additional utilities: LifetimeSource, LifetimeExchanger, DisposableLifetime, Max, Min, CreateDependentSource.
An observable collection where items are removed when a lifetime paired with them ends. Affords projecting, filtering, and other functional-style usage by removing the need to equate removed items with previously added items.
The resource lifetime management module of the Qubus C# core libraries.
Add extensions that allow consistency lifetime check for services registered into Microsoft's native dependency injection system for .NET Core 2.0
An utility for checking the release of objects.
Object reference counting (alpha version)
Through the countdown, automatically Remove and Dispose the objects in the dictionary (Inherit ConcurrentDictionary class), with Renew function.
Add simple way to add MockObject to the ServiceCollection.
ConfigurationScoped lifetime to faciliate safe reloading of services in a live application.
A dependency injection library with lifetime management. Mark your service implementations with an attribute and they will be automatically added to the service collection. When these services are no longer needed, they will be automatically disposed of.
LifeTimes is a lightweight library that extends the built-in Microsoft.DependencyInjection lifetimes.
A SystemsRx Plugin that provides a base notion for implementing a plugin to control when a system is started and stopped with ease.
Connection management for HttpClient with pooling and lifecycle control
High‑performance foundational utilities for .NET, providing async/threading primitives, lifetime management tools, Span/Memory polyfills, fast path builders, diagnostics helpers, and essential collection utilities. Designed for correctness, speed, and consistent behavior across modern .NET and .NET Framework.
A SystemRx Plugin to delay the start of a system until it is ready.
SimpleSingleton is a thread-safe singleton pattern implementation in C# that allows registration and retrieval of singleton instances of any type. It ensures that only one instance of a particular type can be created and accessed at a time, providing a globally accessible point of access for these instances.