EXCSLA.Shared.Core.Abstractions 5.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package EXCSLA.Shared.Core.Abstractions --version 5.2.0
                    
NuGet\Install-Package EXCSLA.Shared.Core.Abstractions -Version 5.2.0
                    
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="EXCSLA.Shared.Core.Abstractions" Version="5.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EXCSLA.Shared.Core.Abstractions" Version="5.2.0" />
                    
Directory.Packages.props
<PackageReference Include="EXCSLA.Shared.Core.Abstractions" />
                    
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 EXCSLA.Shared.Core.Abstractions --version 5.2.0
                    
#r "nuget: EXCSLA.Shared.Core.Abstractions, 5.2.0"
                    
#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 EXCSLA.Shared.Core.Abstractions@5.2.0
                    
#: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=EXCSLA.Shared.Core.Abstractions&version=5.2.0
                    
Install as a Cake Addin
#tool nuget:?package=EXCSLA.Shared.Core.Abstractions&version=5.2.0
                    
Install as a Cake Tool

EXCSLA.Shared.Core.Abstractions

Core abstractions and interfaces for the EXCSLA Domain-Driven Design framework.

Overview

This package provides the foundational abstractions for building applications using Domain-Driven Design patterns. It includes repository patterns, specifications, email services, and domain event handling interfaces.

Key Interfaces

  • IAsyncRepository<T> - Generic async repository pattern for aggregate root persistence
  • ISpecification<T> - Specification pattern for complex query criteria
  • IEmailSender - Email service abstraction
  • IHandle<T> - Domain event handler interface

Installation

dotnet add package EXCSLA.Shared.Core.Abstractions

Usage

Repository Pattern

public interface IAsyncRepository<T> where T : class
{
    Task<T?> GetByIdAsync(object id);
    Task<IEnumerable<T>> ListAsync();
    Task<IEnumerable<T>> ListAsync(ISpecification<T> spec);
    Task<T> AddAsync(T entity);
    Task UpdateAsync(T entity);
    Task DeleteAsync(T entity);
    Task<int> CountAsync(ISpecification<T> spec);
    Task<bool> AnyAsync(ISpecification<T> spec);
}

Email Service

public interface IEmailSender
{
    Task SendEmailAsync(string email, string subject, string message);
}

Dependencies

  • .NET 10.0 or higher

License

See LICENSE file in repository

Support

For issues and questions, visit the GitHub repository

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 (4)

Showing the top 4 NuGet packages that depend on EXCSLA.Shared.Core.Abstractions:

Package Downloads
EXCSLA.Shared.Core.GuardClauses

Guard Clauses orginally created by Steve (Ardalis) Smith. This project adds additional guard clauses used in EXCSLA.Shared.Core. These guard clauses are meant to be used with the EXCSLA.Shared framework.

EXCSLA.Shared.Core.Specifications

A Domain Driven shared library, containing basic components for setting up a domain. Contains base classes for AggregateRoots, Entities, and value objects. These each have proper overrides for Equals, ==, and !=. This package also includes interfaces for setting up domain events as well as interfaces for using a repository pattern. This is an open source project please feel free to do a pull request on the github repo.

EXCSLA.Shared.Core.ValueObjects

Common Value Objects found in many domains. Such as Name, Email, Phone Number, etc.

EXCSLA.Shared.Application

Application layer for EXCSLA.Shared DDD Framework. Provides base classes and interfaces for implementing the Application layer in Clean Architecture, including Command/Query patterns, handlers, and internal event dispatching without external dependencies. This package enables building application services that orchestrate domain logic and coordinate work across aggregates. This is an open source project please feel free to do a pull request on the github repo.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.3.1 131 2/8/2026
5.2.0 127 2/6/2026
5.1.0 132 2/6/2026
4.0.2 1,609 1/24/2022
4.0.1 4,085 11/24/2021
3.0.0 3,268 2/15/2021
2.0.1 2,926 12/3/2019
1.0.1 196 2/9/2024