internal void Validate(string optionsName) { if (ApplicationPath == null || !ApplicationPath.StartsWith("/")) { throw new OptionValidationException("Application path must start with '/'.", optionsName, "ApplicationPath"); } }
private void Validate() { const string optionsName = "Server"; if (ApplicationPath == null || !ApplicationPath.StartsWith("/")) { throw new OptionValidationException("Application path must start with '/'.", optionsName, "ApplicationPath"); } }