Пример #1
0
 public LazynetAppServer(LazynetAppContext context)
 {
     // 上下文
     this.Context = context;
     this.Server  = new LazynetServer(new LazynetServerConfig()
     {
         Heartbeat  = this.Context.Config.Heartbeat,
         Port       = this.Context.Config.Port,
         SocketType = this.Context.Config.SocketType
     });
 }
Пример #2
0
 public LazynetExternalServer(LazynetAppContext context)
 {
     // 上下文
     this.Context = context;
     this.Server  = new LazynetServer(new LazynetServerConfig()
     {
         Heartbeat     = this.Context.Config.ExternalServerHeartbeat,
         Port          = this.Context.Config.ExternalServerPort,
         SocketType    = this.Context.Config.ExternalServerType,
         WebsocketPath = this.Context.Config.ExternalServerWebsocketPath
     });
 }