public SyncronousMicroWebServer(params string[] prefixes)
        {
            if (!HttpListener.IsSupported)
            {
                ThrowNotSupportedException();
            }

            _microWeb = new MicroWeb();

            _listener = new HttpListener();
            _prefixes = prefixes;

            StartListener();
        }
Esempio n. 2
0
        public MicroWebServer(params string[] prefixes)
        {
            if (!HttpListener.IsSupported)
            {
                throw new NotSupportedException(
                          "Sorry... The operating system isn't supported! Minimum requirements are 'Windows XP SP2' or 'Server 2003'.");
            }

            _microWeb = new MicroWeb();
            _microWeb.AppStart();

            _listener = new HttpListener();
            _prefixes = prefixes;

            StartServer();
        }
Esempio n. 3
0
 public HttpModule()
 {
     _microWeb = new MicroWeb();
 }