Fingent-Application-Default 1.0.2

dotnet add package Fingent-Application-Default --version 1.0.2
                    
NuGet\Install-Package Fingent-Application-Default -Version 1.0.2
                    
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="Fingent-Application-Default" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fingent-Application-Default" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Fingent-Application-Default" />
                    
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 Fingent-Application-Default --version 1.0.2
                    
#r "nuget: Fingent-Application-Default, 1.0.2"
                    
#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 Fingent-Application-Default@1.0.2
                    
#: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=Fingent-Application-Default&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Fingent-Application-Default&version=1.0.2
                    
Install as a Cake Tool

Fingent Application Defaults

A comprehensive application layer implementation for .NET 8 applications, providing default implementations for common application patterns including MediatR handlers, FluentValidation, and HTTP context management.

🚀 Features

  • MediatR Integration: Pre-configured MediatR setup for CQRS pattern implementation
  • FluentValidation: Built-in validation framework support
  • HTTP Context Management: ASP.NET Core HTTP abstractions support
  • Clean Architecture: Follows clean architecture principles with proper separation of concerns
  • Shared Core Integration: Built on top of Fingent.Shared.Core foundation

📦 Installation

dotnet add package Fingent-Application-Default

🔧 Dependencies

  • .NET 8.0
  • FluentValidation 11.9.2
  • MediatR 12.4.0
  • Microsoft.AspNetCore.Http.Abstractions 2.3.0
  • Fingent.Shared.Core

💻 Usage

Basic Setup

// Program.cs or Startup.cs
services.AddApplicationDefaults();

Command/Query Handlers

public class CreateUserCommand : IRequest<User>
{
    public string Name { get; set; }
    public string Email { get; set; }
}

public class CreateUserCommandHandler : IRequestHandler<CreateUserCommand, User>
{
    public async Task<User> Handle(CreateUserCommand request, CancellationToken cancellationToken)
    {
        // Implementation
        return new User { Name = request.Name, Email = request.Email };
    }
}

Validation

public class CreateUserCommandValidator : AbstractValidator<CreateUserCommand>
{
    public CreateUserCommandValidator()
    {
        RuleFor(x => x.Name).NotEmpty().MaximumLength(100);
        RuleFor(x => x.Email).EmailAddress().NotEmpty();
    }
}

Using in Controllers

[ApiController]
[Route("api/[controller]")]
public class UsersController : ControllerBase
{
    private readonly IMediator _mediator;

    public UsersController(IMediator mediator)
    {
        _mediator = mediator;
    }

    [HttpPost]
    public async Task<User> CreateUser(CreateUserCommand command)
    {
        return await _mediator.Send(command);
    }
}

📚 Key Components

  • Command/Query Handlers: Implement application business logic
  • Validators: Ensure data integrity and business rules
  • Pipelines: Cross-cutting concerns like logging, validation, and caching
  • HTTP Context Access: Simplified access to HTTP context information

🏗️ Architecture

This package follows Clean Architecture principles:

  • Application Layer: Contains business logic and orchestration
  • Validation Layer: Ensures data integrity
  • Infrastructure Integration: Seamless integration with ASP.NET Core

👨‍💻 Author

Frebin Francis
Fingent Technology Solutions Pvt Ltd

📄 License

Copyright © 2025 Fingent Technology Solutions Pvt Ltd

Product 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. 
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 Fingent-Application-Default:

Package Downloads
Fingent-Services-Default

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 292 9/24/2025