public void SetError(Exception error) { lock (_locker) { _error = error; } Interlocked.Increment(ref _errorCount); } /// <summary>