You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
412 B

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<TBoxServer>();
Server.Start(port);
}
}
}