private void RaisePlayerThinkingStartedAsync() { var handler = PlayerThinkingStarted; if (handler is null) { return; } AsyncFactotum.ExecuteAsync(() => handler(this, EventArgs.Empty)); }
private void RaiseGameBoardChangedAsync() { var handler = GameBoardChanged; if (handler is null) { return; } AsyncFactotum.ExecuteAsync(() => handler(this, EventArgs.Empty)); }
private void RaiseUnhandledExceptionOccurredAsync(Exception exception) { var handler = UnhandledExceptionOccurred; if (handler is null) { return; } var eventArgs = new ThreadExceptionEventArgs(exception); AsyncFactotum.ExecuteAsync(() => handler(this, eventArgs)); }