Exemple #1
0
        public MyTask <(int, int)> HelloInt(int a)
        {
            Logger.Debug($"server: recv helloint {a}");

            MyTask.Run(async delegate(object o)
            {
                var(c, d) = await CallAsync.GetRpc <ICHelloService>().HelloInt(1);
                Logger.Debug($"recv client a: {c}, b: {d}");
            }, null);

            return(MyTask.FromResult((a, a)));
        }
Exemple #2
0
        public void Hello()
        {
            Logger.Debug("server: recv hello");

            CallAsync.GetRpc <ICHelloService>().Hello();
        }