Net.Leksi.LifetimeObserver
1.2.2
See the version list below for details.
dotnet add package Net.Leksi.LifetimeObserver --version 1.2.2
NuGet\Install-Package Net.Leksi.LifetimeObserver -Version 1.2.2
<PackageReference Include="Net.Leksi.LifetimeObserver" Version="1.2.2" />
paket add Net.Leksi.LifetimeObserver --version 1.2.2
#r "nuget: Net.Leksi.LifetimeObserver, 1.2.2"
// Install Net.Leksi.LifetimeObserver as a Cake Addin #addin nuget:?package=Net.Leksi.LifetimeObserver&version=1.2.2 // Install Net.Leksi.LifetimeObserver as a Cake Tool #tool nuget:?package=Net.Leksi.LifetimeObserver&version=1.2.2
Attention! This article, as well as this announcement, are automatically translated from Russian.
The Net.Leksi.LifetimeObserver library is designed to monitor the lifetime of objects of selected types. It is recommended to use the library to ensure that there are no memory leaks during development. Used with the standard dependency injection container Microsoft.Extensions.DependencyInjection
.
All classes are contained in the Net.Leksi.Util
namespace.
- LifetimeObserver - library facade class. Registers in the dependency injection container as a Singleton service.
- LifetimeObserverException - Specialized exception type.
- LifetimeEventArgs - the type of the event argument associated with the object's lifetime.
The principles of using the library are described in the section Demo and principles of use.
Sources are here
NuGet Package: Net.Leksi.LifetimeObserver
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Net.Leksi.LifetimeObserver:
Package | Downloads |
---|---|
Net.Leksi.LifetimeVisualizer
An utility for checking the release of objects. |
GitHub repositories
This package is not used by any popular GitHub repositories.
1.1.0 Added a possibility to trace objects not involved with DependencyInjection.
1.2.0 Added a possibility to fast enabling/disabling current configuration without boring commenting code.