Task IHandleAsync <NewRoundEventModel> .HandleAsync(NewRoundEventModel message) { if (TempScreen != null) { throw new BasicBlankException("The screen was never closed out. Rethink"); } TempScreen = MainContainer.Resolve <BuncoNewRoundViewModel>(); return(LoadScreenAsync(TempScreen)); }
async Task IHandleAsync <NewRoundEventModel> .HandleAsync(NewRoundEventModel message) { ClearSubscriptions(); await CloseMainAsync("The main screen should have been not null when choosing new round. Rethink"); await CloseRoundAsync(); await NewGameOrRoundRequestedAsync(); //await LoadGameScreenAsync(); IRequestNewGameRound gameRound = MainContainer.Resolve <IRequestNewGameRound>(); await gameRound.RequestNewRoundAsync(); //hint: either another message or somebody else would send the same message for the client. }