12345678910111213141516 |
- using NetCore;
- using NetCore.Protocol.MemoryPack;
- using NetServerCore.Attribute;
- namespace NetServer.InternalServer.Logic;
- [LogicEnrollAtt((int)InternalSendType.AddServer, 1)]
- public class AddServerLogic : InternalLogicBasic
- {
- public override void Logic(InternalMemoryRequst internalMemoryRequst, IConnection iConnection)
- {
- ServerType serverType = internalMemoryRequst.ServerType;
- ServerLinkMnager.Instance.AddServerConnection(serverType, iConnection);
- Console.WriteLine("添加一个服务器"+iConnection.ConnectionId);
- }
- }
|