Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Configuration & Integrations

L0StableNuGet: v3.0.0Local HEAD: v3.2.0AOT: Partial

EricksonLopez.Result isolates every framework dependency into dedicated satellite packages so Domain projects stay dependency-free.

Register ProblemDetails mapping and endpoint filters with EricksonLopez.Result.AspNetCore:

using System;
using EricksonLopez.Result.AspNetCore;
using EricksonLopez.Result.OpenApi;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
namespace Example.Api;
public static class ResultEndpointRegistration
{
public static void ConfigureServices(IServiceCollection services)
{
services.AddResultProblemDetails();
services.AddResultExceptionHandler();
services.AddResultHttpOptions(options =>
{
options.IncludeDescription = false; // Safer production default (RESULT009)
options.TypeUriBase = "https://errors.example.com/";
});
}
public static void MapSampleEndpoint(WebApplication app)
{
app.MapGet("/orders/{id:guid}", static (Guid id) =>
EricksonLopez.Result.Result.Success(new { OrderId = id }))
.AddResultEndpointFilter()
.ProducesResult<object>()
.ProducesResultProblemDetails();
}
}
  • OpenTelemetry (EricksonLopez.Result.OpenTelemetry): Call services.AddResultMetrics() and chain .TraceOutcome(...) via ResultActivityExtensions (ResultMetrics.StaticTrackSuccess / StaticTrackFailure).
  • FluentValidation (EricksonLopez.Result.FluentValidation): ValidateToResult(), ValidateToResultWithValue(), and ToValidationResult() automatically redact sensitive properties (password, token, secret, creditcard, cardnumber, cvv, ssn, pin, apikey, auth) to "[REDACTED]".
  • System.Text.Json (EricksonLopez.Result.Serialization): Call jsonOptions.AddResultConverters() or compose ResultJsonSerializerContext; ErrorJsonConverter enforces MaxAllowedDepth = 32.
  • Entity Framework Core / Polly / Dapr / gRPC / MassTransit / MediatR: Use SaveChangesAsyncToResult, AddResultRetry, DaprResultStateExtensions, ResultServerInterceptor, UseResultFilter, and AddResultExceptionBehavior.