Sripe.DataAcquisition.MWD.PCDWD 0.17.0
Sripe定向数据采集组件使用说明
1 概述
- 采集定向实时数据,请使用
Sripe.DataAcquisition.MWD.MwdReliableAcquirer
类, 它是基于Socket的网络实时数据采集器. 前方需配合Sripe定向发送器
使用. - 模拟采集定向实时数据,请使用
Sripe.DataAcquisition.MWD.MwdAcquirerSimulator
类. MwdReliableAcquirer
与MwdAcquirerSimulator
均实现IRealtimeRecordAcquirer<MudLogRealtimeRecord>
接口- 所采集的定向数据为
MwdRealtimeRecord
类型
2 What's new:
- 0.17.0(2023.7.16):
- *Update Dependences.
- 0.16.0(2023.7.16):
- *Update Dependences.
- 0.15.0(2023.7.16):
- *Update Dependences.
- 0.14.0(2023.7.16):
- *Update Dependences.
- 0.13.0(2023.7.15):
- *Update Dependences.
- 0.12.0(2023.7.14):
- *Update Dependences.
- 0.11.0(2023.7.14):
- *Update Dependences.
- 0.10.0(2023.7.14):
- *Update Dependences.
- 0.9.0(2023.7.13):
- *Update Dependences.
- 0.8.0(2023.7.10):
- *Update Dependences.
- 0.7.0(2023.6.5):
- *Update Dependences.
- 0.6.0(2023.1.5):
- *Update Dependences.
- 0.5.0(2022.12.13):
- *Update Dependences.
- 0.4.0(2022.12.12):
- *Update Dependences.
- 0.3.6(2022.12.11):
- *version upgrade on purpose, cos' there was an old package whose version already growed to 0.3.5.
- 0.2.0(2022.10.27):
- *Update Dependences.
- 0.1.0(2022.05.26):
- +Move from Sripe.DataAcquisition.MWD.
3 准备工作
- 安装
Sripe.DataAcquisition.MWD
包 - 在代码文件中引用
Sripe.DataAcquisition.MWD
命名空间
4 使用采集器
构建新实例:
var acquirer = new MwdReliableAcquirer(30000, null); acquirer.OnDataAcquired += (s, e) => { //mwd realtime data in e.Record };
启动采集器:
acquirer.StartAcquiringAsync();
停止采集, 关闭底层的网络资源.
acquirer.Close();
5 使用采集模拟器
构建新实例:
var acquirer = new MwdAcquirerSimulator(); acquirer.OnDataAcquired += (s, e) => { //mwd realtime data in e.Record };
启动采集器:
acquirer.StartAcquiringAsync();
停止采集, 关闭资源.
acquirer.Close();
6 启用日志
使用内置日志机制(内部使用NLog)
using ijw.Next.Log var _logger = LogHelper.GetNLogger(); //然后可以将_logger传入采集器的构造函数中, 如: var acquirer = new MudLogReliableAcquirer(30000, _logger);
启动项目增加
NLog.config
文件, 并复制到生成文件夹中.项目运行后, 会根据
NLog.config
中的配置生成日志, 一般来说是在logs
文件夹下面按时间生成文件(第三方组件NLog
的功能).
7 其他
- 数据采集使用了事件处理器, 因此可能有内存泄露, 注意close之后, 解绑事件处理器挂载, 方便GC回收.
Showing the top 20 packages that depend on Sripe.DataAcquisition.MWD.PCDWD.
Packages | Downloads |
---|---|
Sripe.SiteApp
What's New:
0.9.1(2020.9.27):
+EF Core support.
0.8.3(2020.7.1):
+EF Core support.
0.8.2(2020.1.10):
+local ipendpoint
0.8.1(2019.12.28):
*null or empty data disgard.
0.8.0(2019.11.14):
*Dependence update.
0.7.7(2019.11.13):
*Dependence update.
0.7.5(2019.11.13):
*MultiTargetSiteSender: use async cache for net45.
*SiteApp: use async cache for net45.
0.7.3(2019.11.5):
*Async support.
0.7.2(2019.11.5):
*Dependence update.
0.6.3(2019.11.4):
+MultiTargetSiteApp and MultiTargetSiteSender classes.
+Dependence update.
*fix: LogCleaner may crash.
0.5.2(2019.11.1):
*Dependence update.
0.5.1(2019.10.22):
*Add runtime info/error events.
0.4.9(2019.10.21):
*Dependence update.
0.4.7(2019.10.18):
*Dependence update.
0.4.3(2019.10.17):
*Dependence update.
0.4.1(2019.10.16):
+Cleaning logs for the specific number of days ago.
0.3.0(2019.10.9):
+First release.
Introduction:
This package includes a SiteApp class for building Sripe on-site application.
What's in it:
SiteApp class, which uses SripeDataClient and IDataAcquirer to simplify
|
2 |
.NET Framework 4.0
- Sripe.DataAcquisition.MWD (>= 0.24.0)
- IndexRange (>= 1.0.2)
.NET Framework 4.5
- Sripe.DataAcquisition.MWD (>= 0.24.0)
- IndexRange (>= 1.0.2)
.NET 5.0
- Sripe.DataAcquisition.MWD (>= 0.24.0)
.NET 6.0
- Sripe.DataAcquisition.MWD (>= 0.24.0)
.NET Standard 2.0
- Sripe.DataAcquisition.MWD (>= 0.24.0)
- IndexRange (>= 1.0.2)
.NET Standard 2.1
- Sripe.DataAcquisition.MWD (>= 0.24.0)
Version | Downloads | Last updated |
---|---|---|
0.17.0 | 1 | 2025/4/17 |