public async Task RollDice() { CloseAllModals(); string RollResults = await JSRuntime.InvokeAsync <string>("RollDice", RollCount.ToString() + ActiveDie); Hub.AnnounceRoll(RollCount, ActiveDie, RollResults); await JSRuntime.InvokeVoidAsync("PlaySound", "alert.wav"); RollCount = 1; }