public AsyncWebSocketRouteResolver(AsyncWebSocketServerModuleCatalog moduleCatalog) { if (moduleCatalog == null) { throw new ArgumentNullException("moduleCatalog"); } _moduleCatalog = moduleCatalog; }
public AsyncWebSocketServer(IPEndPoint listenedEndPoint, AsyncWebSocketServerModuleCatalog catalog, AsyncWebSocketServerConfiguration configuration = null) { if (listenedEndPoint == null) throw new ArgumentNullException("listenedEndPoint"); if (catalog == null) throw new ArgumentNullException("catalog"); this.ListenedEndPoint = listenedEndPoint; _catalog = catalog; _configuration = configuration ?? new AsyncWebSocketServerConfiguration(); Initialize(); }
public AsyncWebSocketServer(IPEndPoint listenedEndPoint, AsyncWebSocketServerModuleCatalog catalog, AsyncWebSocketServerConfiguration configuration = null) { if (listenedEndPoint == null) { throw new ArgumentNullException("listenedEndPoint"); } if (catalog == null) { throw new ArgumentNullException("catalog"); } this.ListenedEndPoint = listenedEndPoint; _catalog = catalog; _configuration = configuration ?? new AsyncWebSocketServerConfiguration(); Initialize(); }
public AsyncWebSocketServer(IPEndPoint listenedEndPoint, AsyncWebSocketServerModuleCatalog catalog, AsyncWebSocketServerConfiguration configuration = null) { if (listenedEndPoint == null) { throw new ArgumentNullException("listenedEndPoint"); } if (catalog == null) { throw new ArgumentNullException("catalog"); } this.ListenedEndPoint = listenedEndPoint; _catalog = catalog; _configuration = configuration ?? new AsyncWebSocketServerConfiguration(); if (_configuration.BufferManager == null) { throw new InvalidProgramException("The buffer manager in configuration cannot be null."); } Initialize(); }
public AsyncWebSocketServer(IPAddress listenedAddress, int listenedPort, AsyncWebSocketServerModuleCatalog catalog, AsyncWebSocketServerConfiguration configuration = null) : this(new IPEndPoint(listenedAddress, listenedPort), catalog, configuration) { }
public AsyncWebSocketServer(int listenedPort, AsyncWebSocketServerModuleCatalog catalog, AsyncWebSocketServerConfiguration configuration = null) : this(IPAddress.Any, listenedPort, catalog, configuration) { }
public AsyncWebSocketRouteResolver(AsyncWebSocketServerModuleCatalog moduleCatalog) { if (moduleCatalog == null) throw new ArgumentNullException("moduleCatalog"); _moduleCatalog = moduleCatalog; }