public CommonReturnValueWithApplication UpdateExecConnection(string dataSource, string catalog, string username, string password, int port) { if (this.ExecutionConnection == null) { this.ExecutionConnection = new Connection(); } this.ExecutionConnection.Update(this, "execution", dataSource, catalog, username, password, port, null); return(CommonReturnValueWithApplication.success(null)); }
public CommonReturnValueWithApplication UpdateApplication(string name, string jsNamespace, int defaultRuleMode) { if (string.IsNullOrWhiteSpace(name) || name.IndexOfAny(System.IO.Path.GetInvalidFileNameChars()) >= 0) { return(CommonReturnValueWithApplication.userError("Application names may not be empty or contain special characters. Valid characters include A to Z and 0 to 9.")); } if (this.Applications == null) { this.Applications = new List <Application>(); } var app = new Application(); app.Name = name; app.JsNamespace = jsNamespace; app.DefaultRuleMode = defaultRuleMode; this.Applications.Add(app); return(CommonReturnValueWithApplication.success(app)); }