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 83a020c commit e9f00c3Copy full SHA for e9f00c3
2 files changed
src/extensions/BootstrapBlazor.OpcDa/ISubscription.cs
@@ -17,7 +17,7 @@ public interface ISubscription
17
/// <summary>
18
/// 获得/设置 数据变更回调
19
/// </summary>
20
- Func<List<OpcReadItem>, Task>? DataChanged { get; set; }
+ Action<List<OpcReadItem>>? DataChanged { get; set; }
21
22
23
/// 获得 <see cref="Opc.Da.ISubscription"/> 实例
src/extensions/BootstrapBlazor.OpcDa/OpcSubscription.cs
@@ -6,7 +6,7 @@ namespace BootstrapBlazor.OpcDa;
6
7
class OpcSubscription(Opc.Da.ISubscription subscription) : ISubscription
8
{
9
- public Func<List<OpcReadItem>, Task>? DataChanged { get; set; }
+ public Action<List<OpcReadItem>>? DataChanged { get; set; }
10
11
public bool KeepLastValue { get; set; }
12
0 commit comments