Beispiel #1
0
        public override async Task <StandardReplyMsg> LogOut(EmptyMsg request, ServerCallContext context)
        {
            await _signInManager.SignOutAsync();

            return(new StandardReplyMsg {
                Error = "Uspesno ste izlogovani"
            });
        }
Beispiel #2
0
        public override async Task <TestResponse> TestWithEmpty(EmptyMsg request, ServerCallContext context)
        {
            var returnMsg = new TestResponse
            {
                Values = { 1, 2, 3, 4 }
            };

            return(returnMsg);
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 public override Task <EmptyMsg> Heartbeat(EmptyMsg request, ServerCallContext context)
 {
     return(new Task <EmptyMsg>(() => new EmptyMsg()));
 }
Beispiel #5
0
    public void ReadyMatch()
    {
        EmptyMsg req = new EmptyMsg();

        NetWork.SendPacket <EmptyMsg>(CTS.CTS_MatchReady, req, null);
    }