一键导入
http-pipeline
Use when changing HTTP handlers, retry behavior, or pipeline ordering in Contentstack.Management.Core.Runtime.Pipeline.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when changing HTTP handlers, retry behavior, or pipeline ordering in Contentstack.Management.Core.Runtime.Pipeline.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when reviewing or preparing a pull request for contentstack-management-dotnet.
Use for branches, CI, build/test scripts, and NuGet release flow in contentstack-management-dotnet.
Use for the contentstack.management.aspnetcore package, HttpClient/DI registration with ASP.NET Core.
Use when changing or using the CMA client API, authentication, or NuGet package surface for Contentstack.Management.Core.
Use for C# language level, nullable usage, and file/folder layout consistent with Contentstack.Management.Core.
Use when building or updating DocFX API documentation under docfx_project for this repository.
| name | http-pipeline |
| description | Use when changing HTTP handlers, retry behavior, or pipeline ordering in Contentstack.Management.Core.Runtime.Pipeline. |
RetryHandler, DefaultRetryPolicy, or RetryConfiguration.ContentstackClient.BuildPipeline.ContentstackClient.BuildPipeline registers handlers in this outer-to-inner order for execution:
HttpHandler — sends the HttpRequestMessage via the SDK’s HttpClient.RetryHandler — wraps the inner handler and applies RetryPolicy.Incoming calls traverse RetryHandler first, which delegates to HttpHandler for the actual HTTP call, then inspects success/failure and may retry.
ContentstackClientOptions.RetryPolicy is set, that instance is used.RetryConfiguration.FromOptions(contentstackOptions) builds a RetryConfiguration, then new DefaultRetryPolicy(retryConfiguration).RetryConfiguration holds defaults and toggles, including:
RetryOnError, RetryLimit, RetryDelayRetryOnNetworkFailure, RetryOnDnsFailure, RetryOnSocketFailure, MaxNetworkRetries, NetworkRetryDelay, RetryOnHttpServerError, etc.Exact defaults and edge cases belong in code comments and unit tests—do not duplicate the full matrix here; change the source and tests together.
DefaultRetryPolicy maintains a set of status codes that may trigger HTTP retries (e.g. selected 5xx, 429, timeouts, Unauthorized in the default set). When adjusting this list, consider:
ContentstackClient.Contentstack.Management.Core.Unit.Tests/Runtime/Pipeline/ — e.g. RetryHandler, RetryDelayCalculator, DefaultRetryPolicy, NetworkErrorDetector, etc. Update these when behavior changes.