Table of Contents

Namespace Arc4u.AspNetCore.gRpc.Results

Classes

FromResultToRpcExceptionExtension

Turns a failed FluentResults.Result into the fault a gRPC service throws. Everything is derived from the very ProblemDetails the REST endpoints return (ToProblemDetails()), so both transports report a failure identically. The ProblemDetails itself travels along following the gRPC richer error model: packed as an arc4u.grpc.v1.ProblemDetails in the google.rpc.Status of the grpc-status-details-bin trailer, which every gRPC language has a helper to read. The .NET client-side counterpart is FromRpcExceptionToResultExtension in Arc4u.gRPC.