Skip to content

Commit e9f00c3

Browse files
committed
refactor: 更改为 Action 回调
1 parent 83a020c commit e9f00c3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/extensions/BootstrapBlazor.OpcDa/ISubscription.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface ISubscription
1717
/// <summary>
1818
/// 获得/设置 数据变更回调
1919
/// </summary>
20-
Func<List<OpcReadItem>, Task>? DataChanged { get; set; }
20+
Action<List<OpcReadItem>>? DataChanged { get; set; }
2121

2222
/// <summary>
2323
/// 获得 <see cref="Opc.Da.ISubscription"/> 实例

src/extensions/BootstrapBlazor.OpcDa/OpcSubscription.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace BootstrapBlazor.OpcDa;
66

77
class OpcSubscription(Opc.Da.ISubscription subscription) : ISubscription
88
{
9-
public Func<List<OpcReadItem>, Task>? DataChanged { get; set; }
9+
public Action<List<OpcReadItem>>? DataChanged { get; set; }
1010

1111
public bool KeepLastValue { get; set; }
1212

0 commit comments

Comments
 (0)