We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ccdc1f commit fc90832Copy full SHA for fc90832
src/BootstrapBlazor.Server/Components/Samples/Sockets/SocketFactories.razor
@@ -24,6 +24,12 @@ private ITcpSocketFactory? TcpSocketFactory { get; set; }</Pre>
24
options.LocalEndPoint = new IPEndPoint(IPAddress.Loopback, 0);
25
});</Pre>
26
27
+<p>可以通过注入服务直接获得 <code>ITcpSocketClient</code> 实例</p>
28
+
29
+<Pre>[Inject]
30
+[NotNull]
31
+private ITcpSocketClient? TcpSocketClient { get; set; }</Pre>
32
33
<p class="code-label">3. 使用方法</p>
34
35
<p>注意:以下方法均为线程不安全方法,多线程并发时需要自行处理</p>
0 commit comments