using Autofac; using DotNetty.Handlers.Logging; using HybirdFrameworkCore.Autofac; namespace Service.TBox.Server; public class TBoxServerMgr { public static TBoxServer? Server { get; private set; } public static void InitTBoxServer(int port) { if (Server == null) { Server = AppInfo.Container.Resolve(); Server.Start(port); } } }