internal void AddServiceURL(string ServiceURL) { WCFModel wcf = null; if (this.MessageCredentialType == MessageCredentialType.None) { wcf = new WCFModel(this.errReporter, ServiceURL, this.serviceNameSpace, this.ServiceType, this.ServiceInterface); } else { deleSecurityCustomizer SecurityCustomizer = new ValidationManager(ServiceURL, this.MessageCredentialType).GetSecurityCustomizer(); wcf = new WCFModel(this.errReporter, ServiceURL, this.serviceNameSpace, this.MessageCredentialType, this.certPath, this.certPassword, SecurityCustomizer, this.ServiceType, this.ServiceInterface); } ServiceDic.Add(ServiceURL, wcf); }
internal void AddServiceURL(string ServiceURL) { //잘못된 URL형식 걸러내기 if (!(ServiceURL.Contains("http://")) || (ServiceURL.Replace("http://", string.Empty).Length == 0)) { return; } WCFModel wcf = null; if (this.MessageCredentialType == MessageCredentialType.None) { wcf = new WCFModel(this.errReporter, ServiceURL, this.serviceNameSpace, this.ServiceType, this.ServiceInterface); } else { deleSecurityCustomizer SecurityCustomizer = new ValidationManager(ServiceURL, this.MessageCredentialType).GetSecurityCustomizer(); wcf = new WCFModel(this.errReporter, ServiceURL, this.serviceNameSpace, this.MessageCredentialType, this.certPath, this.certPassword, SecurityCustomizer, this.ServiceType, this.ServiceInterface); } ServiceDic.Add(ServiceURL, wcf); }
public int AddUser(WCFModel.User user) { return new DBSqlHelper().ExecuteSql("insert into [user] values('"+user.Name+"','"+user.NickName+"')"); }