ArturRios.Output

The result envelopes the whole family returns — ProcessOutput, DataOutput and PaginatedOutput.

Docs NuGet License: Attribution

The root of the family. ArturRios.Output standardizes how an operation reports what happened: a success flag, messages, errors and a UTC timestamp — optionally wrapped around a payload or a page of results. Every other library that can fail returns one of these types, which is why almost all of them depend on it.

What you get

TypeWhat it does
ProcessOutputMessages, errors, timestamp and a Success flag (true when there are no errors). Fluent WithError / WithMessage helpers and a New factory.
DataOutput<T>ProcessOutput plus a typed Data payload and WithData(T).
PaginatedOutput<T>DataOutput<List<T>> plus PageNumber, PageSize, TotalItems and a computed TotalPages.
CustomExceptionAbstract base for domain exceptions that carry an array of messages.
PaginatedOutputExtensionsPaginate / PaginateAsync over IQueryable<T>, using EF Core’s async provider when available and falling back to synchronous enumeration when not.

No runtime dependencies beyond Microsoft.EntityFrameworkCore for the EF-aware PaginateAsync path.

var output = DataOutput<User>.New
    .WithData(user)
    .WithMessage("User created");

if (!output.Success) { /* output.Errors has the reasons */ }

Install

dotnet add package ArturRios.Output

Family dependencies

None.

This is the root of the dependency graph — everything else layers on top of it.