public async void TestActor()
        {
            M2C_TestActorResponse response = (M2C_TestActorResponse)await SessionWrapComponent.Instance.Session.Call(
                new C2M_TestActorRequest()
            {
                Info = "actor rpc request"
            });

            Log.Info(response.Info);
        }
Esempio n. 2
0
        public async ETVoid TestActor()
        {
            try
            {
                M2C_TestActorResponse response = (M2C_TestActorResponse)await SessionComponent.Instance.Session.Call(
                    new C2M_TestActorRequest()
                {
                    Info = "actor rpc request"
                });

                Log.Info(response.Info);
            }
            catch (Exception e)
            {
                Log.Error(e);
            }
        }
Esempio n. 3
0
 public virtual async ETTask C2M_TestActorRequestHandler(Unit unit, C2M_TestActorRequest request, M2C_TestActorResponse response, Action reply)
 {
 }
Esempio n. 4
0
 public override async ETTask C2M_TestActorRequestHandler(Unit unit, C2M_TestActorRequest request, M2C_TestActorResponse response, Action reply)
 {
     response.Info = "actor rpc response";
     reply();
     await ETTask.CompletedTask;
 }