RemoveServerLogic.cs 511 B

123456789101112131415
  1. using NetCore;
  2. using NetCore.Protocol.MemoryPack;
  3. using NetServerCore.Attribute;
  4. namespace NetServer.InternalServer.Logic;
  5. [LogicEnrollAtt((int)InternalSendType.RemoveServer, 1)]
  6. public class RemoveServerLogic : InternalLogicBasic
  7. {
  8. public override void Logic(InternalMemoryRequst internalMemoryRequst, IConnection iConnection)
  9. {
  10. ServerType serverType = internalMemoryRequst.ServerType;
  11. ServerLinkMnager.Instance.RemoveServerConnection(serverType, iConnection.ConnectionId);
  12. }
  13. }