GatewayService.cs 622 B

1234567891011121314151617181920212223242526272829
  1. using System.Threading.Tasks;
  2. using Rebus.Bus;
  3. using Rebus.Handlers;
  4. using TBL.CSharp.Game.Server.BuiltInSignal;
  5. namespace TBL.CSharp.Game.Server.BuiltInService;
  6. /// <summary>
  7. /// 门户服务
  8. /// <para>外部请求将在此进行就地处理或转发至其它内部服务</para>
  9. /// </summary>
  10. public class GatewayService :
  11. IHandleMessages<RemoteRequest>
  12. {
  13. private IBus _bus;
  14. public GatewayService(IBus bus)
  15. {
  16. _bus = bus;
  17. }
  18. /// <summary>
  19. /// 响应远程请求
  20. /// </summary>
  21. public Task Handle(RemoteRequest request)
  22. {
  23. return Task.CompletedTask;
  24. }
  25. }