本通信库的单个通信对象在异步通信的时候是否使用异步锁,默认True,适用于winform,wpf等UI程序(有效防止UI上同时读写PLC时发生死锁问题),如果是控制台程序或是纯后台线程采集的程序,适合配置False
Whether a single communication object of this communication library uses asynchronous locks during asynchronous communication, the default is True, which is suitable for UI programs such as winform,
wpf and so on (effectively preventing deadlock problems when reading and writing PLCs at the same time on the UI), and if it is a console program or a program collected by pure background threads, it is suitable to configure False
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static bool UseAsyncLock { get; set; }
Public Shared Property UseAsyncLock As Boolean
Get
Set
public:
static property bool UseAsyncLock {
bool get ();
void set (bool value);
}
static member UseAsyncLock : bool with get, set
属性值
类型:
Boolean参见