Exemplo n.º 1
0
 public Server(
     ILogger <Server> logger,
     EventLoopGroups eventLoopGroups,
     ServerConfiguration serverSettings,
     WebSocketServerHandler webSockettHandler)
 {
     this.logger = logger;
     this.serverConfiguration = serverSettings;
     this.eventLoopGroups     = eventLoopGroups;
     this.webSockettHandler   = webSockettHandler;
 }
Exemplo n.º 2
0
 public XmppProxyConnection(
     ILogger <WebSocketServerHandler> logger,
     EventLoopGroups eventGroup)
     : base(new Action <IChannelPipeline>(pipeline =>
 {
     pipeline.AddBefore <StreamPropsCaptureHandler, CatchAllXmppStanzaHandler>();
 }), eventGroup.WorkerGroup)
 {
     this.logger           = logger;
     this.HostnameResolver = new SrvNameResolver();
 }