InternalLogicManager.cs 932 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Concurrent;
  2. using System.Reflection;
  3. using MemoryPack;
  4. using NetCore;
  5. using NetCore.Protocol.MemoryPack;
  6. using NetServerCore.NetLink;
  7. using NetServerCore.Tool;
  8. namespace NetServer.InternalServer;
  9. public class InternalLogicManager : LogicManagerBaisc<InternalMemoryRequst>
  10. {
  11. public override void Logic(object data, IConnection iConnection)
  12. {
  13. InternalMemoryRequst internalMemoryRequst =
  14. data as InternalMemoryRequst;
  15. // InternalMemoryRequst internalMemoryRequst = data as InternalMemoryRequst;
  16. InternalSendType internalSendType = internalMemoryRequst.SendType;
  17. LogicBaisc<InternalMemoryRequst> logicBaisc = GetLogicBaisc((int)internalSendType);
  18. logicBaisc.Logic(internalMemoryRequst, iConnection);
  19. }
  20. public void AddConnection(IConnection iConnection)
  21. {
  22. }
  23. public void RemoveConnection(IConnection iConnection)
  24. {
  25. }
  26. }