Tolitech.Application 1.0.0-preview.11

This is a prerelease version of Tolitech.Application.
dotnet add package Tolitech.Application --version 1.0.0-preview.11
                    
NuGet\Install-Package Tolitech.Application -Version 1.0.0-preview.11
                    
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="Tolitech.Application" Version="1.0.0-preview.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tolitech.Application" Version="1.0.0-preview.11" />
                    
Directory.Packages.props
<PackageReference Include="Tolitech.Application" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tolitech.Application --version 1.0.0-preview.11
                    
#r "nuget: Tolitech.Application, 1.0.0-preview.11"
                    
#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.
#:package Tolitech.Application@1.0.0-preview.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tolitech.Application&version=1.0.0-preview.11&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Tolitech.Application&version=1.0.0-preview.11&prerelease
                    
Install as a Cake Tool

Tolitech.Application

Overview

Tolitech.Application is a modern .NET library providing essential interfaces and utilities for Clean Architecture-based applications, including Unit of Work.

Features

  • Unit of Work Interface (IUnitOfWork): Manages operations as a single transaction, including methods for saving changes, starting, committing, and rolling back transactions, and integration with Tolitech.Results.
  • Clean Architecture Alignment: Promotes separation between application, domain, and infrastructure layers.
  • Extensibility: Easily integrates with custom repositories and data sources.

Characteristics

  • Designed for maintainability and scalability
  • Integrates with Tolitech.Results for standardized operation results
  • Easily testable and mockable for unit testing

Main Interfaces

IUnitOfWork

public interface IUnitOfWork : IDisposable
{
    Task<int> SaveChangesInTransactionAsync(CancellationToken cancellationToken);
    Task<int> SaveChangesAsync(CancellationToken cancellationToken);
    Task<int> SaveChangesAsync(bool publishDomainEvents, CancellationToken cancellationToken);
    Task BeginTransactionAsync(CancellationToken cancellationToken);
    Task BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken);
    Task CommitAsync(CancellationToken cancellationToken);
    Task RollbackAsync(CancellationToken cancellationToken);
    Task CommitOrRollbackAsync(Result result, CancellationToken cancellationToken);
}

IsolationLevel Enumeration

Controls transaction isolation level:

public enum IsolationLevel
{
    Unspecified = -1,
    Chaos = 16,
    ReadUncommitted = 256,
    ReadCommitted = 4096,
    RepeatableRead = 65536,
    Serializable = 1048576,
    Snapshot = 16777216,
}

How to Integrate

  1. Reference Tolitech.Application in your project.
  2. Implement the interfaces as needed (IUnitOfWork).
  3. Use transaction methods to ensure consistency and atomicity.

Summary

Tolitech.Application streamlines transactional management, enforcing separation of concerns and making it an essential building block for modern .NET applications.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Tolitech.Application:

Package Downloads
Tolitech.Infrastructure.Persistence.EntityFrameworkCore

The Tolitech.Infrastructure.Persistence.EntityFrameworkCore repository provides a foundational implementation for the Repository pattern, Unit of Work, and Specification Query Builder using Entity Framework Core. Simplify database interaction, promote code organization, and maintenance using these widely recognized patterns.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.11 46 11/3/2025