This commit is contained in:
2025-09-15 16:51:51 +08:00
parent 6a4e515562
commit a69e02dd26
29 changed files with 319 additions and 117 deletions
@@ -90,13 +90,13 @@
<h2 id="overview">Overview</h2>
<p>A connection-scoped indexing pattern for referencing backend objects across hierarchical SignalR hub connections.</p>
<h2 id="core-components">Core Components</h2>
<p><strong>&lt;xref:HiNC_2025_webapi.Common.DictionaryService&gt;</strong>: Manages connection-scoped index dictionaries</p>
<p><code>DictionaryService</code>: Manages connection-scoped index dictionaries</p>
<ul>
<li>First layer key: Hub connectionId (auto-generated by SignalR)</li>
<li>Second layer key: LocalId (resource name)</li>
<li>Value: References to backend objects (functions, getters/setters)</li>
</ul>
<p><strong>&lt;xref:HiNC_2025_webapi.Common.DictionaryHub&gt;</strong>: Base hub that auto-cleans index entries on disconnect</p>
<p><code>DictionaryHub</code>: Base hub that auto-cleans index entries on disconnect</p>
<h2 id="architecture">Architecture</h2>
<pre><code>Root-Hub
└── Child-Hub - has parent's connectionId