This commit is contained in:
2026-09-12 18:16:27 +08:00
parent b7f55aa631
commit 397a7a8cc4
96 changed files with 1167 additions and 1259 deletions
@@ -104,6 +104,7 @@ Class SetupController
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[ApiController]
[Route(&quot;api/[controller]/[action]&quot;)]
[ProducesResponseType(typeof(ApiActionResult), 409)]
public class SetupController : ControllerBase</code></pre>
</div>
@@ -700,6 +701,13 @@ public class SetupController : ControllerBase</code></pre>
<h2 id="Hi_MachiningProcs_SetupController_remarks">Remarks</h2>
<div class="markdown level0 remarks"><p>Project-level surface: every action but <a class="xref" href="Hi.MachiningProcs.SetupController.html#Hi_MachiningProcs_SetupController_LoadProject_System_String_">LoadProject(string)</a> writes through members
that are null until a project is open. Without the filter those writes do not throw — the
serialization helpers are extension methods and the setup-face setters return early on a
null <code>SetupEquipment</code> — so the caller got HTTP 200 for a save that saved nothing.
The filter turns that silent false-success into an honest HTTP 409 + <a class="xref" href="Hi.MachiningProcs.ApiActionResult.html">ApiActionResult</a>.</p>
</div>
<h2 class="section" id="constructors">Constructors
@@ -872,6 +880,9 @@ public void LoadProject(string filePath)</code></pre>
<h4 class="section" id="Hi_MachiningProcs_SetupController_LoadProject_System_String__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>This is how a project comes into being, so it runs before one exists.</p>
</div>