Beispiel #1
0
 public Server(ChildInitializer childInitializer, ChannelInboundHandler parentHandler, LogProvider debugLogProvider, LogProvider userLogProvider, ListenSocketAddress listenAddress, string serverName) : base(debugLogProvider.GetLog(typeof(Server)))
 {
     this._childInitializer = childInitializer;
     this._parentHandler    = parentHandler;
     this._listenAddress    = listenAddress;
     this._debugLog         = debugLogProvider.getLog(this.GetType());
     this._userLog          = userLogProvider.getLog(this.GetType());
     this._serverName       = serverName;
     this._threadFactory    = new NamedThreadFactory(serverName);
 }
Beispiel #2
0
 public Server(ChildInitializer childInitializer, ListenSocketAddress listenAddress, string serverName) : this(childInitializer, null, NullLogProvider.Instance, NullLogProvider.Instance, listenAddress, serverName)
 {
 }
Beispiel #3
0
 public Server(ChildInitializer childInitializer, LogProvider debugLogProvider, LogProvider userLogProvider, ListenSocketAddress listenAddress, string serverName) : this(childInitializer, null, debugLogProvider, userLogProvider, listenAddress, serverName)
 {
 }