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.
21 lines
458 B
21 lines
458 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.LogLevel = LogLevel.TRACE;
|
|
Server.Start(port);
|
|
}
|
|
}
|
|
}
|