Beispiel #1
0
        private async void DiscordServiceServerOnJackpotWinner(object sender, JackpotWinnerRequest request)
        {
            var @event = Event.JackpotWinner;
            var msg    = $"{request.Request.RoundId} ended with a value of {request.Request.Value}";

            await SendMessageToUserSubscribed(@event, msg);
        }
 public Task <EmptyResponse> JackpotWinnerAsync(JackpotWinnerRequest request)
 {
     return(SendGrpcAction(async() => await _discordService.JackpotWinnerAsync(request, DefaultSettings.GetDefaultSettings(2)), false));
 }
 public override Task <EmptyResponse> JackpotWinner(JackpotWinnerRequest request, ServerCallContext context)
 {
     OnJackpotWinner?.Invoke(this, request);
     return(Task.FromResult(new EmptyResponse()));
 }