public override async Task <StandardReplyMsg> LogOut(EmptyMsg request, ServerCallContext context) { await _signInManager.SignOutAsync(); return(new StandardReplyMsg { Error = "Uspesno ste izlogovani" }); }
public override async Task <TestResponse> TestWithEmpty(EmptyMsg request, ServerCallContext context) { var returnMsg = new TestResponse { Values = { 1, 2, 3, 4 } }; return(returnMsg); }
public override async Task GetAllBankaBills(EmptyMsg request, IServerStreamWriter <BillMsg> responseStream, ServerCallContext context) { _logger.LogInformation("Usli smo u GetAllBankaBills"); var racuniBanka = _context.Bills.Where(a => a.WayOfSellingEnum == Bill.WayOfSelling.Banka).ToList(); try { foreach (var item in racuniBanka) { _logger.LogInformation("poceo stream"); await responseStream.WriteAsync(_convert.ConvertCeoRacun(item)); } } catch (Exception ex) { _logger.LogError(ex.Message); } }
public override Task <EmptyMsg> Heartbeat(EmptyMsg request, ServerCallContext context) { return(new Task <EmptyMsg>(() => new EmptyMsg())); }
public void ReadyMatch() { EmptyMsg req = new EmptyMsg(); NetWork.SendPacket <EmptyMsg>(CTS.CTS_MatchReady, req, null); }