Example #1
0
        public long Start(IRequest request)
        {
            if (_start == null)
            {
                _start = Get <Delegates.Start>("Start");
            }
            var requestDelegatedelegate = new Delegates.Request
            {
                Recursive          = request.Recursive,
                Path               = request.Path,
                Callback           = _callback,
                CallbackIntervalMs = 50
            };

            // start
            return(_start(ref requestDelegatedelegate));
        }
        public long Start(IRequest request)
        {
            if (_start == null)
            {
                _start = Get <Delegates.Start>("Start");
            }
            var requestDelegatedelegate = new Delegates.Request
            {
                Recursive                    = request.Recursive,
                Path                         = request.Path,
                EventsCallback               = _eventsCallback,
                StatisticsCallback           = _statisticsCallback,
                EventsCallbackIntervalMs     = request.Rates.EventsMilliseconds,
                StatisticsCallbackIntervalMs = request.Rates.StatisticsMilliseconds,
                LoggerCallback               = _loggerCallback
            };

            // start
            return(_start(ref requestDelegatedelegate));
        }