Mohd2sh.CleanArchitecture.Core.Application
1.0.1
dotnet add package Mohd2sh.CleanArchitecture.Core.Application --version 1.0.1
NuGet\Install-Package Mohd2sh.CleanArchitecture.Core.Application -Version 1.0.1
<PackageReference Include="Mohd2sh.CleanArchitecture.Core.Application" Version="1.0.1" />
<PackageVersion Include="Mohd2sh.CleanArchitecture.Core.Application" Version="1.0.1" />
<PackageReference Include="Mohd2sh.CleanArchitecture.Core.Application" />
paket add Mohd2sh.CleanArchitecture.Core.Application --version 1.0.1
#r "nuget: Mohd2sh.CleanArchitecture.Core.Application, 1.0.1"
#:package Mohd2sh.CleanArchitecture.Core.Application@1.0.1
#addin nuget:?package=Mohd2sh.CleanArchitecture.Core.Application&version=1.0.1
#tool nuget:?package=Mohd2sh.CleanArchitecture.Core.Application&version=1.0.1
CleanArchitecture.Core.Application
Core application layer abstractions, CQRS interfaces, and handler registration extensions for Clean Architecture.
Purpose
This package provides CQRS abstractions (commands, queries, mediator) and dependency injection extensions for automatic handler discovery and registration.
Installation
dotnet add package Mohd2sh.CleanArchitecture.Core.Application
Usage
Register Handlers
services.AddApplicationHandlers(typeof(YourApplication.ServiceCollectionExtensions).Assembly);
Command
public record CreateProductCommand(string Name) : ICommand<Result<Guid>>;
public class CreateProductCommandHandler : ICommandHandler<CreateProductCommand, Result<Guid>>
{
public Task<Result<Guid>> Handle(CreateProductCommand request, CancellationToken cancellationToken)
{
// Implementation
}
}
Query
public record GetProductQuery(Guid Id) : IQuery<Result<ProductDto>>;
public class GetProductQueryHandler : IQueryHandler<GetProductQuery, Result<ProductDto>>
{
public Task<Result<ProductDto>> Handle(GetProductQuery request, CancellationToken cancellationToken)
{
// Implementation
}
}
Domain Event Handler
public class OrderCreatedEventHandler : IDomainEventHandler<OrderCreatedEvent>
{
public Task Handle(OrderCreatedEvent @event, CancellationToken cancellationToken)
{
// Implementation
}
}
Integration Event Handler
public class OrderCompletedEventHandler : IIntegrationEventHandler<OrderCompletedEvent>
{
public Task Handle(OrderCompletedEvent @event, CancellationToken cancellationToken)
{
// Implementation
}
}
Key Components
ICommand<TResult>- Command interfaceIQuery<TResult>- Query interfaceIMediator- Mediator interface for sending commands and queriesICommandHandler<TCommand, TResult>- Command handler interfaceIQueryHandler<TQuery, TResult>- Query handler interfaceIDomainEventHandler<TEvent>- Domain event handler interfaceIIntegrationEventHandler<TEvent>- Integration event handler interface
Repository
GitHub: https://github.com/mohd2sh/CleanArchitecture-DDD-CQRS
License
MIT
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Mohd2sh.CleanArchitecture.Core.Domain (>= 1.0.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Mohd2sh.CleanArchitecture.Core.Application:
| Package | Downloads |
|---|---|
|
Mohd2sh.CleanArchitecture.Core.Infrastructure
Core infrastructure implementations including custom mediator, event dispatchers, and dependency injection extensions for Clean Architecture. Provides ready-to-use implementations of IMediator, IDomainEventDispatcher, IIntegrationEventDispatcher with DI registration extensions. |
|
|
Mohd2sh.CleanArchitecture.Core.ArchitectureTests
Reusable architecture test base classes for Clean Architecture and DDD validation. Provides base test classes that consumers can inherit to enforce architectural rules and boundaries. |
|
|
Mohd2sh.CleanArchitecture.Core.Infrastructure.Persistence
Core infrastructure Persistence including ef core base, ef transaction, unit of work, and ef criteria. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 368 | 11/30/2025 |
| 1.0.0 | 262 | 11/10/2025 |
| 1.0.0-alpha.6 | 154 | 11/10/2025 |