JordiAragon.SharedKernel.Application.Contracts 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package JordiAragon.SharedKernel.Application.Contracts --version 2.1.1                
NuGet\Install-Package JordiAragon.SharedKernel.Application.Contracts -Version 2.1.1                
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="JordiAragon.SharedKernel.Application.Contracts" Version="2.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JordiAragon.SharedKernel.Application.Contracts --version 2.1.1                
#r "nuget: JordiAragon.SharedKernel.Application.Contracts, 2.1.1"                
#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.
// Install JordiAragon.SharedKernel.Application.Contracts as a Cake Addin
#addin nuget:?package=JordiAragon.SharedKernel.Application.Contracts&version=2.1.1

// Install JordiAragon.SharedKernel.Application.Contracts as a Cake Tool
#tool nuget:?package=JordiAragon.SharedKernel.Application.Contracts&version=2.1.1                

What is the SharedKernel Project?

The goal of this project is create the building blocks to follow DDD principles and Clean Architecture in .NET

Nugets ready to use:

  • JordiAragon.SharedKernel - NuGet JordiAragon.SharedKernel.Contracts - NuGet
  • JordiAragon.SharedKernel.Domain - NuGet JordiAragon.SharedKernel.Domain.Contracts - NuGet
  • JordiAragon.SharedKernel.Application - NuGet JordiAragon.SharedKernel.Application.Contracts - NuGet JordiAragon.SharedKernel.Application.Contracts.IntegrationMessages - NuGet
  • JordiAragon.SharedKernel.Infrastructure - NuGet JordiAragon.SharedKernel.Infrastructure.EntityFramework - NuGet
  • JordiAragon.SharedKernel.Presentation.WebApi - NuGet JordiAragon.SharedKernel.Presentation.WebApi.Contracts - NuGet

Dependency graph:

JordiAragon.SharedKernel - Dependency graph

How to debug:

  • You will need the latest Visual Studio 2022 and the latest .NET Core SDK (at least .NET 7 SDK)
  • All the projects library are contained in JordiAragon.SharedKernel.sln solution file.

Used libraries:

  • MediatR
  • AutoMapper
  • Autofac
  • MassTransit
  • Ardalis.Result
  • Ardalis.Specification
  • Ardalis.SmartEnums
  • Ardalis.GuardClauses
  • FluentValidator
  • Serilog
  • Quartz
  • Refit
  • EasyCaching
  • Volo.Abp.Guids Generator
  • StyleCop & SonarAnalyzer

Brief explanation per project (Pending to complete)

SharedKernel and Contracts

  • Dependency Injection. Allow auto register services using markup interfaces.

Domain and Contracts

  • Common contracts and base implementations to flow DDD principles like: DomainEvents, ApplicationEvents, ValueObjects, Entities, Repository, BusinessRulesValidations and other DDD building blocks.

Application and Contracts

  • Application common contracts and base implementation for EventBus, UnitOfWork and CQRS...
  • Common MediatR pipelines implementation
  • IntegrationMessages contacts and base implementation to be used in EventBus
  • Common EventBus implementation using MassTransit

Infrastructure and Contracts

  • EntityFramework base implementation to allow auditing and outbox to dispatch domain events notifications.
  • BaseCachedRepository is done using ICacheService abstraction.
  • MassTransitEventBus base implementation.

Presentation and Contracts

  • WebApi building blocks. Like BaseApiController, ExceptionMiddleware and CurrentUserService

Resources and Inspiration

  • <a href="https://github.com/ardalis/CleanArchitecture" target="_blank">Ardalis: Clean Architecture</a>
  • <a href="https://www.youtube.com/watch?v=SUiWfhAhgQw" target="_blank">Jimmy Bogard: Vertical Slice Architecture</a>
  • <a href="https://github.com/jasontaylordev/CleanArchitecture" target="_blank">Jason Taylor: Clean Architecture</a>
  • <a href="https://www.oreilly.com/library/view/implementing-domain-driven-design/9780133039900/" target="_blank">Vaughn Vernon: Implementing Domain-Driven Design (book)</a>
  • <a href="https://kalele.io/books/ddd-destilado/" target="_blank">Vaughn Vernon: Domain-Driven Design Destilado (book)</a>
  • <a href="https://www.amazon.com/Hands-Domain-Driven-Design-NET-ebook/dp/B07C5WSR9B" target="_blank">Alexey Zimarev: Hands-on Domain-Driven Design (book)</a>
  • <a href="https://github.com/dotnet-architecture/eShopOnContainers" target="_blank">Microsoft eShopOnContainers</a>
  • <a href="https://github.com/dotnet-architecture/eShopOnWeb" target="_blank">Microsoft eShopOnWeb</a>
  • <a href="https://github.com/kgrzybek/sample-dotnet-core-cqrs-api" target="_blank">Kamil Grzybek: Sample .NET Core REST API CQRS</a>
  • <a href="https://github.com/kgrzybek/modular-monolith-with-ddd" target="_blank">Kamil Grzybek: Modular Monolith With DDD</a>
  • <a href="https://www.youtube.com/@amantinband" target="_blank">Amichai Mantinband: Youtube Channel</a>
  • <a href="https://www.youtube.com/@MilanJovanovicTech" target="_blank">Milan Jovanović: Youtube Channel</a>

About:

The SharedKernel Project was developed by <a href="https://www.linkedin.com/in/jordiaragonzaragoza/" target="_blank">Jordi Aragón Zaragoza</a>

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on JordiAragon.SharedKernel.Application.Contracts:

Package Downloads
JordiAragon.SharedKernel.Presentation.WebApi

A simple package to implement the building blocks to follow DDD principles and Clean Architecture.

JordiAragon.SharedKernel.Infrastructure

A simple package to implement the building blocks to follow DDD principles and Clean Architecture.

JordiAragon.SharedKernel.Application

A simple package to implement the building blocks to follow DDD principles and Clean Architecture.

JordiAragon.SharedKernel.Infrastructure.EntityFramework

A simple package to implement the building blocks to follow DDD principles and Clean Architecture.

JordiAragon.SharedKernel.Infrastructure.EventStore

A simple package to implement the building blocks to follow DDD principles and Clean Architecture.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.4 158 9/19/2024
8.0.0 184 8/8/2024
7.0.0 200 7/7/2024
6.0.2 168 5/10/2024
5.0.0 213 4/2/2024
4.0.0 361 1/23/2024
3.0.0 529 12/2/2023
2.2.0 437 11/5/2023
2.1.2 426 9/27/2023
2.1.1 517 8/24/2023
2.0.0 481 7/15/2023
1.0.0 484 6/4/2023