-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathISubscription.cs
More file actions
33 lines (28 loc) · 949 Bytes
/
ISubscription.cs
File metadata and controls
33 lines (28 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/
namespace BootstrapBlazor.OpcDa;
/// <summary>
/// 订阅接口定义
/// </summary>
public interface ISubscription
{
/// <summary>
/// 获得/设置 是否保留最后一个值
/// </summary>
public bool KeepLastValue { get; set; }
/// <summary>
/// 获得/设置 数据变更回调
/// </summary>
Action<List<OpcReadItem>>? DataChanged { get; set; }
/// <summary>
/// 获得 <see cref="Opc.Da.ISubscription"/> 实例
/// </summary>
/// <returns></returns>
Opc.Da.ISubscription GetSubscription();
/// <summary>
/// 增加数据项
/// </summary>
/// <param name="items"></param>
void AddItems(IEnumerable<string> items);
}