public HttpRequestController(string name, HttpServer server) { if (name == null) throw new ArgumentNullException(nameof(name)); if (server == null) throw new ArgumentNullException(nameof(server)); _baseUri = name; server.RequestReceived += ExecuteActions; }
public LocalHttpServerApiDispatcherEndpointService(IApiService apiService, HttpServer httpServer) { if (apiService == null) throw new ArgumentNullException(nameof(apiService)); if (httpServer == null) throw new ArgumentNullException(nameof(httpServer)); _apiService = apiService; _httpServer = httpServer; }
public HttpRequestDispatcher(HttpServer server) { if (server == null) throw new ArgumentNullException(nameof(server)); _server = server; }