internal virtual bool IsPaused() { TestAppendSnapshotTruncate.Worker.State s = CheckErrorState(); if (s == TestAppendSnapshotTruncate.Worker.State.Stopped) { throw new InvalidOperationException(name + " is " + s); } return(s == TestAppendSnapshotTruncate.Worker.State.Idle && !isCalling.Get()); }
internal virtual TestAppendSnapshotTruncate.Worker.State CheckErrorState() { TestAppendSnapshotTruncate.Worker.State s = state.Get(); if (s == TestAppendSnapshotTruncate.Worker.State.Error) { throw new InvalidOperationException(name + " has " + s, thrown); } return(s); }