Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }