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 6ee1d0e commit 0042098Copy full SHA for 0042098
src/BootstrapBlazor.Server/Components/Samples/Modbus/ModbusFactories.razor.cs
@@ -3,22 +3,12 @@
3
// See the LICENSE file in the project root for more information.
4
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
5
6
-using Longbow.Modbus;
7
-
8
namespace BootstrapBlazor.Server.Components.Samples.Modbus;
9
10
/// <summary>
11
/// IModbusFactory 服务说明文档
12
/// </summary>
13
public partial class ModbusFactories
14
{
15
- [Inject, NotNull]
16
- private IModbusFactory? ModbusFactory { get; set; }
17
18
- protected override void OnInitialized()
19
- {
20
- base.OnInitialized();
21
22
- ModbusFactory.GetOrCreateTcpMaster();
23
- }
24
}
0 commit comments