public void Watch(DaMonitor monitor, TimeSpan updateRate, float deadband, int localeId) { var clientHandle = _clientHandleSequence.GetNext(); var group = _server.AddAsyncGroup(string.Empty, true, (int)updateRate.TotalMilliseconds, clientHandle, deadband, localeId); monitor.Attach(group, _clientHandleSequence); }
public DaMonitor Watch(IEnumerable <IDaItem> items, TimeSpan updateRate, float deadband, int localeId) { var monitor = new DaMonitor(); monitor.AddRange(items); Watch(monitor, updateRate, deadband, localeId); return(monitor); }