public RestServer(RestServerConfiguration config) { if (config == null) { throw new ArgumentNullException("config"); } this.config = config; this.fileResponder = new FileResponder(config.WebRoot, responseWriter); listenerThread = new Thread(HandleRequest); }