public SyncronousMicroWebServer(params string[] prefixes) { if (!HttpListener.IsSupported) { ThrowNotSupportedException(); } _microWeb = new MicroWeb(); _listener = new HttpListener(); _prefixes = prefixes; StartListener(); }
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(); }
public HttpModule() { _microWeb = new MicroWeb(); }