public RestServer With404Handler(IRestServerRouteHandler handler) { if (IsRunning) { throw new InvalidOperationException("Can't modify route handlers while running."); } _restServerRoute404Handler = handler; return(this); }
public RestServer RegisterRouteHandler(IRestServerRouteHandler handler) { if (IsRunning) { throw new InvalidOperationException("Can't modify route handlers while running."); } _restServerRouteHandlers.Add(handler); return(this); }
public RestServer RegisterRouteHandler(IRestServerRouteHandler handler) { _restServerRouteHandlers.Add(handler); return(this); }