Exemplo n.º 1
0
        public override void Start()
        {
            lock (_stateLock)
            {
                lock (this.ThisLock)
                {
                    if (this.State == ManagerState.Start)
                    {
                        return;
                    }
                    _state = ManagerState.Start;

                    _watchTimer.Change(0, 1000 * 60 * 10);
                }
            }
        }
Exemplo n.º 2
0
        public void Load(string directoryPath)
        {
            lock (this.ThisLock)
            {
                _settings.Load(directoryPath);

                _watchTimer.Change(new TimeSpan(0, 0, 0), new TimeSpan(0, 5, 0));
            }
        }
Exemplo n.º 3
0
        public override void Start()
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(this.GetType().FullName);
            }

            lock (_stateLock)
            {
                lock (this.ThisLock)
                {
                    if (this.State == ManagerState.Start)
                    {
                        return;
                    }
                    _state = ManagerState.Start;

                    _watchTimer.Change(0, 1000 * 10);
                }
            }
        }
Exemplo n.º 4
0
        public override void Start()
        {
            lock (_stateLock)
            {
                lock (this.ThisLock)
                {
                    if (this.State == ManagerState.Start)
                    {
                        return;
                    }
                    _state = ManagerState.Start;

                    _watchTimer.Change(0, 1000 * 60 * 10);

                    _uploadThread          = new Thread(this.UploadThread);
                    _uploadThread.Priority = ThreadPriority.Lowest;
                    _uploadThread.Name     = "UploadManager_UploadManagerThread";
                    _uploadThread.Start();
                }
            }
        }