public override bool Equals(object obj) { ProviderMetadataId rhs = obj as ProviderMetadataId; if (rhs == null) { return(false); } if (ProviderName.Equals(rhs.ProviderName) && (TheCultureInfo == rhs.TheCultureInfo)) { return(true); } return(false); }
/// <summary> /// Returns true if StoreInfo instances are equal /// </summary> /// <param name="input">Instance of StoreInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(StoreInfo input) { if (input == null) { return(false); } return (( ProviderName == input.ProviderName || ProviderName != null && ProviderName.Equals(input.ProviderName) ) && ( MerchantSuppliedId == input.MerchantSuppliedId || MerchantSuppliedId != null && MerchantSuppliedId.Equals(input.MerchantSuppliedId) ) && ( IsActive == input.IsActive || IsActive != null && IsActive.Equals(input.IsActive) ) && ( IsOrderProtocolPos == input.IsOrderProtocolPos || IsOrderProtocolPos != null && IsOrderProtocolPos.Equals(input.IsOrderProtocolPos) ) && ( AutoReleaseEnabled == input.AutoReleaseEnabled || AutoReleaseEnabled != null && AutoReleaseEnabled.Equals(input.AutoReleaseEnabled) ) && ( AutoReleaseDistance == input.AutoReleaseDistance || AutoReleaseDistance != null && AutoReleaseDistance.Equals(input.AutoReleaseDistance) ) && ( SpecialInstructionsMaxLength == input.SpecialInstructionsMaxLength || SpecialInstructionsMaxLength != null && SpecialInstructionsMaxLength.Equals(input.SpecialInstructionsMaxLength) ) && ( CurrentDeactivations == input.CurrentDeactivations || CurrentDeactivations != null && CurrentDeactivations.SequenceEqual(input.CurrentDeactivations) )); }
public bool Equals(HdoSchedule other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ProviderName.Equals(other.ProviderName) && ScheduleIntervalDefinitions.SequenceEqual(other.ScheduleIntervalDefinitions)); }
private string ExcuteDeploy(FormHandler.FormItem fileItem) { var re = DeployExcutor(fileItem); try { if (_formHandler == null) { return(re); } if (!string.IsNullOrEmpty(re)) { return(re); } if (string.IsNullOrEmpty(ProjectPublishFolder) || !Directory.Exists(ProjectPublishFolder)) { return(re); } //保存参数 var formArgs = _formHandler.FormItems.Where(r => r.FileBody == null || r.FileBody.Length < 1).ToList(); if (formArgs.Any()) { var path = Path.Combine(ProjectPublishFolder, "antdeploy_args.json"); var content = JsonConvert.SerializeObject(formArgs); File.WriteAllText(path, content, Encoding.UTF8); } SaveCurrentVersion(ProjectPublishFolder); } catch (Exception) { //ignore } var projectRootPath = new DirectoryInfo(ProjectPublishFolder).Parent; if (projectRootPath == null || !projectRootPath.Exists) { return(re); } //每次发布完成后清理老的发布历史记录 只清理自己项目的 //防止别的项目正在回滚到某个版本,你这边发现这个版本已经过时了就删除了 Setting.ClearOldFolders(ProviderName.Equals("iis") || ProjectName.Equals("linux"), projectRootPath.Name, Log); return(re); }
/// <summary> /// Returns true if ComAdobeGraniteDistributionCoreImplReplicationAdaptersReplicatProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeGraniteDistributionCoreImplReplicationAdaptersReplicatProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeGraniteDistributionCoreImplReplicationAdaptersReplicatProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProviderName == other.ProviderName || ProviderName != null && ProviderName.Equals(other.ProviderName) ) && ( ForwardRequests == other.ForwardRequests || ForwardRequests != null && ForwardRequests.Equals(other.ForwardRequests) )); }
/// <summary> /// Returns true if StoreMenuInfo instances are equal /// </summary> /// <param name="input">Instance of StoreMenuInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(StoreMenuInfo input) { if (input == null) { return(false); } return (( ProviderName == input.ProviderName || ProviderName != null && ProviderName.Equals(input.ProviderName) ) && ( MerchantSuppliedId == input.MerchantSuppliedId || MerchantSuppliedId != null && MerchantSuppliedId.Equals(input.MerchantSuppliedId) ) && ( Menus == input.Menus || Menus != null && Menus.SequenceEqual(input.Menus) )); }
public bool Equals(InternalStreamId other) => StreamId.Equals(other) && ProviderName.Equals(other.ProviderName);
/// <summary> /// Returns true if OrgApacheJackrabbitOakSecurityAuthenticationLdapImplLdapIdentiProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheJackrabbitOakSecurityAuthenticationLdapImplLdapIdentiProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheJackrabbitOakSecurityAuthenticationLdapImplLdapIdentiProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProviderName == other.ProviderName || ProviderName != null && ProviderName.Equals(other.ProviderName) ) && ( HostName == other.HostName || HostName != null && HostName.Equals(other.HostName) ) && ( HostPort == other.HostPort || HostPort != null && HostPort.Equals(other.HostPort) ) && ( HostSsl == other.HostSsl || HostSsl != null && HostSsl.Equals(other.HostSsl) ) && ( HostTls == other.HostTls || HostTls != null && HostTls.Equals(other.HostTls) ) && ( HostNoCertCheck == other.HostNoCertCheck || HostNoCertCheck != null && HostNoCertCheck.Equals(other.HostNoCertCheck) ) && ( BindDn == other.BindDn || BindDn != null && BindDn.Equals(other.BindDn) ) && ( BindPassword == other.BindPassword || BindPassword != null && BindPassword.Equals(other.BindPassword) ) && ( SearchTimeout == other.SearchTimeout || SearchTimeout != null && SearchTimeout.Equals(other.SearchTimeout) ) && ( AdminPoolMaxActive == other.AdminPoolMaxActive || AdminPoolMaxActive != null && AdminPoolMaxActive.Equals(other.AdminPoolMaxActive) ) && ( AdminPoolLookupOnValidate == other.AdminPoolLookupOnValidate || AdminPoolLookupOnValidate != null && AdminPoolLookupOnValidate.Equals(other.AdminPoolLookupOnValidate) ) && ( UserPoolMaxActive == other.UserPoolMaxActive || UserPoolMaxActive != null && UserPoolMaxActive.Equals(other.UserPoolMaxActive) ) && ( UserPoolLookupOnValidate == other.UserPoolLookupOnValidate || UserPoolLookupOnValidate != null && UserPoolLookupOnValidate.Equals(other.UserPoolLookupOnValidate) ) && ( UserBaseDN == other.UserBaseDN || UserBaseDN != null && UserBaseDN.Equals(other.UserBaseDN) ) && ( UserObjectclass == other.UserObjectclass || UserObjectclass != null && UserObjectclass.Equals(other.UserObjectclass) ) && ( UserIdAttribute == other.UserIdAttribute || UserIdAttribute != null && UserIdAttribute.Equals(other.UserIdAttribute) ) && ( UserExtraFilter == other.UserExtraFilter || UserExtraFilter != null && UserExtraFilter.Equals(other.UserExtraFilter) ) && ( UserMakeDnPath == other.UserMakeDnPath || UserMakeDnPath != null && UserMakeDnPath.Equals(other.UserMakeDnPath) ) && ( GroupBaseDN == other.GroupBaseDN || GroupBaseDN != null && GroupBaseDN.Equals(other.GroupBaseDN) ) && ( GroupObjectclass == other.GroupObjectclass || GroupObjectclass != null && GroupObjectclass.Equals(other.GroupObjectclass) ) && ( GroupNameAttribute == other.GroupNameAttribute || GroupNameAttribute != null && GroupNameAttribute.Equals(other.GroupNameAttribute) ) && ( GroupExtraFilter == other.GroupExtraFilter || GroupExtraFilter != null && GroupExtraFilter.Equals(other.GroupExtraFilter) ) && ( GroupMakeDnPath == other.GroupMakeDnPath || GroupMakeDnPath != null && GroupMakeDnPath.Equals(other.GroupMakeDnPath) ) && ( GroupMemberAttribute == other.GroupMemberAttribute || GroupMemberAttribute != null && GroupMemberAttribute.Equals(other.GroupMemberAttribute) ) && ( UseUidForExtId == other.UseUidForExtId || UseUidForExtId != null && UseUidForExtId.Equals(other.UseUidForExtId) ) && ( Customattributes == other.Customattributes || Customattributes != null && Customattributes.Equals(other.Customattributes) )); }