Candor.Tasks.WorkerRole.StartTimer C# (CSharp) Method

StartTimer() private method

private StartTimer ( ) : void
return void
        private void StartTimer()
        {
            try
            {
                if (_disposed)
                    throw new ObjectDisposedException("WorkerRole");
                lock (_timerLock)
                {
                    _mainTimer = new Timer(mainTimer__Elapsed, null, PingInterval, PingInterval);
                }
            }
            catch (Exception ex)
            {
                LogProvider.Error("WorkerRole could not start the timer.", ex);
            }
        }