Skip to main content
在 Manus 中运行任何 Skill
一键导入

orleans-result-pattern

星标7
分支0
更新时间2026年4月21日 08:08

Concise, version-tolerant result pattern for Microsoft Orleans 8+ grain calls. Return success/error without throwing exceptions — errors are `enum ErrorNr` + `string` message, fully Orleans-serialization-compatible, marked `[Immutable]` for zero-copy within-silo calls. Use when designing grain contracts that need non-exception flow control, when returning RFC7807 `ValidationProblemDetails` from ASP.NET Core, when avoiding `FluentResults`-style libraries that don't serialize cleanly under Orleans, or when you want implicit conversions (`return "ok"`, `return ErrorNr.NotFound`, `return (ErrorNr.NotFound, "Not found")`) and pattern-matching consumption. Generated by the `mcs-orleans-results` template, which drops `ErrorNr.cs` + `Result.cs` into the project that contains grain interfaces.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly