コード例 #1
0
ファイル: Queries.cs プロジェクト: DCT-UA/Monator
        public void RegisterGathering()
        {
            int timeout = config.CoreDelay;

            var outStream2 = (from window in _pingInputStreamGathering.HoppingWindow(
                                  TimeSpan.FromSeconds(timeout),
                                  TimeSpan.FromSeconds(timeout),
                                  HoppingWindowOutputPolicy.ClipToWindowEnd)
                              from e in window
                              orderby e.Duration
                              select e);

            _pingOutputSource = outStream2.Take(int.MaxValue).ToPointObservable();

            try
            {
                _subscription2 = _pingOutputSource.Subscribe(_eventsOutputService);
            }
            catch (Exception e)
            {
                e.ToString();
                throw;
            }
        }