Actor_TestRequestHandler.cs 413 B

123456789101112131415
  1. using System;
  2. using System.Threading.Tasks;
  3. using Model;
  4. namespace Hotfix
  5. {
  6. [ActorMessageHandler(AppType.Map)]
  7. public class Actor_TestRequestHandler : AMActorRpcHandler<Unit, Actor_TestRequest, Actor_TestResponse>
  8. {
  9. protected override async Task Run(Unit unit, Actor_TestRequest message, Action<Actor_TestResponse> reply)
  10. {
  11. reply(new Actor_TestResponse() {response = "response actor rpc"});
  12. }
  13. }
  14. }