Ejemplo n.º 1
0
        // Login, return 0 = not Login
        public override Task <LgnProxy> Lgn(LgnProxy request, ServerCallContext context)
        {
            Scheduling.RunTask(() =>
            {
                request.CcOno = H.LoginOp(request.Pwd);
            }).Wait();

            return(Task.FromResult(request));
        }
Ejemplo n.º 2
0
        public ulong Login(string id, string pwd)
        {
            var request = new LgnProxy
            {
                Id    = id,
                Pwd   = pwd,
                CcOno = 0,
            };

            var reply = grpcService.ClientCRUDs.Lgn(request);

            return(reply.CcOno); // 0 degilse Bu CC ye ait CET MAClarini girebilir
        }