Onspay.SharedKernel
1.0.5
See the version list below for details.
dotnet add package Onspay.SharedKernel --version 1.0.5
NuGet\Install-Package Onspay.SharedKernel -Version 1.0.5
<PackageReference Include="Onspay.SharedKernel" Version="1.0.5" />
<PackageVersion Include="Onspay.SharedKernel" Version="1.0.5" />
<PackageReference Include="Onspay.SharedKernel" />
paket add Onspay.SharedKernel --version 1.0.5
#r "nuget: Onspay.SharedKernel, 1.0.5"
#:package Onspay.SharedKernel@1.0.5
#addin nuget:?package=Onspay.SharedKernel&version=1.0.5
#tool nuget:?package=Onspay.SharedKernel&version=1.0.5
Onspay.SharedKernel
Base primitives used by every other package.
Result / Result<T> — Railway-oriented error handling. All handlers return Result or Result<T>, never throw for business errors.
Result success = Result.Success();
Result<Guid> withValue = Result.Success(id);
Result failure = Result.Failure(Error.NotFound("Order.NotFound", "Order not found"));
Result<Guid> typedFailure = Result.Failure<Guid>(error);
// Implicit conversion from non-null value
Result<Guid> implicit = someGuid; // Success
Result<Guid> nullImplicit = (Guid?)null; // Failure(Error.NullValue)
Error — Immutable record with Code, Description, and ErrorType.
Error.Failure("Payment.Failed", "Payment could not be processed")
Error.NotFound("Order.NotFound", "Order was not found")
Error.Problem("Order.InvalidState", "Order is not in a valid state")
Error.Conflict("Order.Duplicate", "Order already exists")
ErrorType — Failure, NotFound, Problem, Conflict, Validation
Entity — Base class with domain event collection.
public class Order : Entity
{
public void Complete()
{
// ...
Raise(new OrderCompletedDomainEvent(Id));
}
}
IDomainEvent — Marker interface for domain events.
IDomainEventHandler<T> — Handler interface for domain events.
IDateTimeProvider — Abstraction for UtcNow, implemented by DateTimeProvider in Onspay.Infrastructure.DomainEvents.
ValidationError — Extends Error carrying a collection of field-level errors produced by FluentValidation.
| Product | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Onspay.SharedKernel:
| Package | Downloads |
|---|---|
|
Onspay.Cqrs
CQRS interfaces (ICommand, IQuery, handlers), inbox message handler base, SQL connection factory abstraction, ConcurrencyException, and DI registration with validation/logging decorators via Scrutor. |
|
|
Onspay.Infrastructure.Inbox
Inbox pattern: InboxMessage entity, EF Core configuration, IInboxDbContext, ProcessInboxMessagesJob (Quartz + Dapper), and InboxOptions. |
|
|
Onspay.AspNetCore
ASP.NET Core utilities: GlobalExceptionHandler, CustomResults (Result-to-ProblemDetails), RequestContextLoggingMiddleware, IEndpoint pattern, Result Match extensions, and ApiResponse envelope with ToApiResponse/ToCreatedApiResponse extensions. |
|
|
Onspay.Infrastructure.DomainEvents
DomainEventDispatcher, DomainEventDbContextBase (EF Core base with SaveChanges dispatch), and DateTimeProvider. |
|
|
Onspay.Infrastructure.Outbox
Outbox pattern: OutboxMessage entity, EF Core configuration, IOutboxDbContext, ProcessOutboxMessagesJob (Quartz + Dapper), and OutboxOptions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.16 | 232 | 6/15/2026 |
| 1.0.14 | 261 | 6/9/2026 |
| 1.0.13 | 230 | 6/5/2026 |
| 1.0.12 | 216 | 6/5/2026 |
| 1.0.11 | 225 | 6/2/2026 |
| 1.0.10 | 180 | 6/1/2026 |
| 1.0.9 | 186 | 5/31/2026 |
| 1.0.8 | 182 | 5/30/2026 |
| 1.0.7 | 187 | 5/30/2026 |
| 1.0.6 | 177 | 5/30/2026 |
| 1.0.5 | 176 | 5/26/2026 |
| 1.0.4 | 167 | 5/19/2026 |
| 1.0.3 | 159 | 5/15/2026 |
| 1.0.2 | 163 | 5/15/2026 |
| 1.0.1 | 153 | 5/15/2026 |
| 1.0.0 | 153 | 5/14/2026 |