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();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        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)
 {
 }
Beispiel #7
0
 public AsyncWebSocketServer(IPAddress listenedAddress, int listenedPort, AsyncWebSocketServerModuleCatalog catalog, AsyncWebSocketServerConfiguration configuration = null)
     : this(new IPEndPoint(listenedAddress, listenedPort), catalog, configuration)
 {
 }
Beispiel #8
0
 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;
 }