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);
}
}