This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ExceptionManager | |
| { | |
| private readonly List<Exception> _thrownExceptions; | |
| private static ExceptionManager _instance; | |
| private ExceptionManager(int maxExceptions, Action onFinalException, Action<Exception> onExceptionThrown = null) | |
| { | |
| MaxExceptions = maxExceptions; | |
| CurrentExceptions = 0; | |
| OnExceptionThrown = onExceptionThrown; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ConsoleSpinner | |
| { | |
| private int _counter; | |
| private bool _spinningEnabled; | |
| public ConsoleSpinner(int spinSpeed) | |
| { | |
| SpinSpeed = spinSpeed; | |
| } |