A .NET library for managing and tracking changes within an application, with support for logging and efficient change application.
$ dotnet add package Oakrey.Applications.ChangeTrackingThe "ChangeTracking" project is a .NET 8 library designed to manage and track changes within an application. It provides a mechanism to register, monitor, and apply changes, ensuring that pending changes are saved or handled appropriately.
The Change class represents a single change with a name and a save action. Tracks whether a change is pending or has been saved.
The ChangeTracker class implements the IChangeTracker interface to manage a collection of changes. Provides methods to add, remove, and apply changes. Automatically trims completed or null changes.
Uses Oakrey.Log for logging change operations and errors during save actions.
Offers methods to check for pending changes and retrieve a list of their names.
You can install the package via NuGet Package Manager, Package Manager Console or the .NET CLI.
Oakrey.Applications.ChangeTracking and click Install.Run the following command in your terminal:
dotnet add package Oakrey.Applications.ChangeTracking
Run the following command in your Package Manager Console:
Install-Package Oakrey.Applications.ChangeTracking
Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.
This project is licensed under the MIT License. See the LICENSE file for details.