TiqriGlobalShop.Common.SharedKernel 1.0.0

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

GlobalShop.Common.SharedKernel

Shared kernel building blocks for GlobalShop services.

Features

  • Result Pattern — Railway-oriented error handling

    • Result / Result<T> — Success/failure types with railway semantics
    • Error — Strongly-typed error record with code, description, and classification
    • ErrorType — Enum for mapping errors to HTTP status codes (Validation, NotFound, Conflict, etc.)
    • ValidationError — Aggregates multiple field-level errors
  • Domain Primitives

    • Entity — Base class with domain event support (PublishEvent, ClearDomainEvents)
    • IDomainEvent — Marker interface for domain events
    • IDomainEventHandler<T> — Handler contract for domain events
    • IDateTimeProvider — Abstraction for testable date/time access

Installation

dotnet add package GlobalShop.Common.SharedKernel

Quick Start

using GlobalShop.Inventory.SharedKernel;

// Return success
Result<Product> result = product;

// Return failure
return Result.Failure<Product>(Error.NotFound("Product.NotFound", "Product not found"));

// Aggregate validation errors
var validationError = ValidationError.FromResults(validationResults);

Namespace Note

Types in this package use the GlobalShop.Inventory.SharedKernel namespace for backward compatibility with existing consumers. A future major version may transition to GlobalShop.Common.SharedKernel.

License

MIT

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.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TiqriGlobalShop.Common.SharedKernel:

Package Downloads
TiqriGlobalShop.Common.AspNetCore

Shared ASP.NET Core infrastructure for TiqriGlobalShop web APIs: exception handlers, correlation ID middleware, minimal API endpoint helpers, Swagger/OpenAPI filters, API versioning, resilient database migrations, health checks, Problem Details customization, and JSON Patch support.

TiqriGlobalShop.Common.Application

Shared application-layer building blocks for TiqriGlobalShop services: CQRS messaging contracts (ICommand, IQuery, ICommandHandler, IQueryHandler), cross-cutting behaviors (logging, validation), IUnitOfWork, domain event dispatching, Mapster integration, and pagination helpers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 204 2/10/2026