/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (CqSearchpromoteConfigurationServerUri != null) { hashCode = hashCode * 59 + CqSearchpromoteConfigurationServerUri.GetHashCode(); } if (CqSearchpromoteConfigurationEnvironment != null) { hashCode = hashCode * 59 + CqSearchpromoteConfigurationEnvironment.GetHashCode(); } if (ConnectionTimeout != null) { hashCode = hashCode * 59 + ConnectionTimeout.GetHashCode(); } if (SocketTimeout != null) { hashCode = hashCode * 59 + SocketTimeout.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComAdobeCqDtmReactorImplServiceWebServiceImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqDtmReactorImplServiceWebServiceImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqDtmReactorImplServiceWebServiceImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( EndpointUri == other.EndpointUri || EndpointUri != null && EndpointUri.Equals(other.EndpointUri) ) && ( ConnectionTimeout == other.ConnectionTimeout || ConnectionTimeout != null && ConnectionTimeout.Equals(other.ConnectionTimeout) ) && ( SocketTimeout == other.SocketTimeout || SocketTimeout != null && SocketTimeout.Equals(other.SocketTimeout) )); }
/// <summary> /// Returns true if ComDayCqSearchpromoteImplSearchPromoteServiceImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqSearchpromoteImplSearchPromoteServiceImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqSearchpromoteImplSearchPromoteServiceImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CqSearchpromoteConfigurationServerUri == other.CqSearchpromoteConfigurationServerUri || CqSearchpromoteConfigurationServerUri != null && CqSearchpromoteConfigurationServerUri.Equals(other.CqSearchpromoteConfigurationServerUri) ) && ( CqSearchpromoteConfigurationEnvironment == other.CqSearchpromoteConfigurationEnvironment || CqSearchpromoteConfigurationEnvironment != null && CqSearchpromoteConfigurationEnvironment.Equals(other.CqSearchpromoteConfigurationEnvironment) ) && ( ConnectionTimeout == other.ConnectionTimeout || ConnectionTimeout != null && ConnectionTimeout.Equals(other.ConnectionTimeout) ) && ( SocketTimeout == other.SocketTimeout || SocketTimeout != null && SocketTimeout.Equals(other.SocketTimeout) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (CqAnalyticsSitecatalystServiceDatacenterUrl != null) { hashCode = hashCode * 59 + CqAnalyticsSitecatalystServiceDatacenterUrl.GetHashCode(); } if (Devhostnamepatterns != null) { hashCode = hashCode * 59 + Devhostnamepatterns.GetHashCode(); } if (ConnectionTimeout != null) { hashCode = hashCode * 59 + ConnectionTimeout.GetHashCode(); } if (SocketTimeout != null) { hashCode = hashCode * 59 + SocketTimeout.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if ComDayCqAnalyticsSitecatalystImplSitecatalystHttpClientImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqAnalyticsSitecatalystImplSitecatalystHttpClientImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqAnalyticsSitecatalystImplSitecatalystHttpClientImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CqAnalyticsSitecatalystServiceDatacenterUrl == other.CqAnalyticsSitecatalystServiceDatacenterUrl || CqAnalyticsSitecatalystServiceDatacenterUrl != null && CqAnalyticsSitecatalystServiceDatacenterUrl.Equals(other.CqAnalyticsSitecatalystServiceDatacenterUrl) ) && ( Devhostnamepatterns == other.Devhostnamepatterns || Devhostnamepatterns != null && Devhostnamepatterns.Equals(other.Devhostnamepatterns) ) && ( ConnectionTimeout == other.ConnectionTimeout || ConnectionTimeout != null && ConnectionTimeout.Equals(other.ConnectionTimeout) ) && ( SocketTimeout == other.SocketTimeout || SocketTimeout != null && SocketTimeout.Equals(other.SocketTimeout) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (ConnectionTimeout != null) { hashCode = hashCode * 59 + ConnectionTimeout.GetHashCode(); } if (SocketTimeout != null) { hashCode = hashCode * 59 + SocketTimeout.GetHashCode(); } return(hashCode); } }
public static void Save() { var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); SetValue(config, "ServerName", ServerName); SetValue(config, "DatabaseName", DatabaseName); SetValue(config, "UserName", UserName); SetValue(config, "ConnectionTimeout", ConnectionTimeout.ToString(CultureInfo.InvariantCulture)); SetValue(config, "CommandTimeout", CommandTimeout.ToString(CultureInfo.InvariantCulture)); var value = (Password.Length > 0) ? SymCryptoHelper.TripleDESEncrypt(Password, Salt, Key, IV) : string.Empty; SetValue(config, "Password", value); SetValue(config, "LoginUserName", LoginUserName); SetValue(config, "LoginPassword", LoginPassword); SetValue(config, "AutoNewRow", AutoNewRow); SetValue(config, "OfflineMode", OfflineMode); SetValue(config, "OfflineServerName", OfflineServerName); SetValue(config, "OfflineDatabaseName", OfflineDatabaseName); SetValue(config, "OfflineUserName", OfflineUserName); SetValue(config, "OfflineConnectionTimeout", OfflineConnectionTimeout.ToString(CultureInfo.InvariantCulture)); SetValue(config, "OfflineCommandTimeout", OfflineCommandTimeout.ToString(CultureInfo.InvariantCulture)); value = (OfflinePassword.Length > 0) ? SymCryptoHelper.TripleDESEncrypt(OfflinePassword, Salt, Key, IV) : string.Empty; SetValue(config, "OfflinePassword", value); SetValue(config, "SynchronizationProvider", GetStringValue("SynchronizationProvider")); SetValue(config, "WSSynchronizationUrl", GetStringValue("WSSynchronizationUrl")); SetValue(config, "WSUserName", GetStringValue("WSUserName")); SetValue(config, "WSPassword", GetStringValue("WSPassword")); SetValue(config, "WSDomain", GetStringValue("WSDomain")); SetValue(config, "SkinName", SkinName); SetValue(config, "AllowFormSkins", AllowFormSkins); SetValue(config, "UseHedgehog", UseHedgehog); SetValue(config, "HedgehogFile", HedgehogFile); config.Save(); BuilderConnectionStrings(); }
/// <summary> /// Gets the hash code for the current object. /// </summary> /// <returns> /// A hash code for the current object. /// </returns> public override int GetHashCode( ) { unchecked { int hash = 17; if (Server != null) { hash = hash * 92821 + Server.GetHashCode( ); } if (Database != null) { hash = hash * 92821 + Database.GetHashCode( ); } hash = hash * 92821 + Authentication.GetHashCode( ); if (Credentials != null) { hash = hash * 92821 + Credentials.GetHashCode( ); } hash = hash * 92821 + ConnectionTimeout.GetHashCode( ); hash = hash * 92821 + CommandTimeout.GetHashCode( ); hash = hash * 92821 + TransactionTimeout.GetHashCode( ); if (Parameters != null) { hash = hash * 92821 + Parameters.GetHashCode( ); } hash = hash * 92821 + MaxPoolSize.GetHashCode( ); return(hash); } }
/// <summary> /// Constructs a connection string from the sql settings. /// </summary> /// <returns>Connection string.</returns> public String ToConnectionString() { StringBuilder connectionString = new StringBuilder(); connectionString.Append(m_ConnectionString); // Strip the last semicolon. if (m_ConnectionString.EndsWith(";", StringComparison.OrdinalIgnoreCase)) { connectionString.Remove(m_ConnectionString.Length - 1, 1); } if (!String.IsNullOrEmpty(InitialCatalog)) { connectionString.Append(";Initial Catalog="); connectionString.Append(InitialCatalog); } if (MinPoolSize != -1) { connectionString.Append(";Min Pool Size="); connectionString.Append(MinPoolSize.ToString(CultureInfo.InvariantCulture)); } if (MaxPoolSize != -1) { connectionString.Append(";Max Pool Size="); connectionString.Append(MaxPoolSize.ToString(CultureInfo.InvariantCulture)); } if (ConnectionTimeout != -1) { connectionString.Append(";Connection Timeout="); connectionString.Append(ConnectionTimeout.ToString(CultureInfo.InvariantCulture)); } return(connectionString.ToString()); }
/// <summary> /// Returns true if ComAdobeCqDtmImplServiceDTMWebServiceImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeCqDtmImplServiceDTMWebServiceImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeCqDtmImplServiceDTMWebServiceImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ConnectionTimeout == other.ConnectionTimeout || ConnectionTimeout != null && ConnectionTimeout.Equals(other.ConnectionTimeout) ) && ( SocketTimeout == other.SocketTimeout || SocketTimeout != null && SocketTimeout.Equals(other.SocketTimeout) )); }
void ReleaseDesignerOutlets() { if (ConnectionTimeout != null) { ConnectionTimeout.Dispose(); ConnectionTimeout = null; } if (DBInitialisedOn != null) { DBInitialisedOn.Dispose(); DBInitialisedOn = null; } if (UpdateAppUri != null) { UpdateAppUri.Dispose(); UpdateAppUri = null; } if (EventUTCOffset != null) { EventUTCOffset.Dispose(); EventUTCOffset = null; } if (NotificationsBtn != null) { NotificationsBtn.Dispose(); NotificationsBtn = null; } if (PromptsBtn != null) { PromptsBtn.Dispose(); PromptsBtn = null; } if (LogsBtn != null) { LogsBtn.Dispose(); LogsBtn = null; } if (PromptView != null) { PromptView.Dispose(); PromptView = null; } if (NotificationView != null) { NotificationView.Dispose(); NotificationView = null; } if (CancelBtn != null) { CancelBtn.Dispose(); CancelBtn = null; } if (DatabaseSize != null) { DatabaseSize.Dispose(); DatabaseSize = null; } if (RunningMode != null) { RunningMode.Dispose(); RunningMode = null; } if (CurrentVersion != null) { CurrentVersion.Dispose(); CurrentVersion = null; } if (GoLiveDate != null) { GoLiveDate.Dispose(); GoLiveDate = null; } if (ResponderRegion != null) { ResponderRegion.Dispose(); ResponderRegion = null; } if (EventPasscode != null) { EventPasscode.Dispose(); EventPasscode = null; } if (RefreshViewBtn != null) { RefreshViewBtn.Dispose(); RefreshViewBtn = null; } if (EventName != null) { EventName.Dispose(); EventName = null; } if (SyncDataBtn != null) { SyncDataBtn.Dispose(); SyncDataBtn = null; } if (ResponderId != null) { ResponderId.Dispose(); ResponderId = null; } if (SyncDataInterval != null) { SyncDataInterval.Dispose(); SyncDataInterval = null; } if (SyncMode != null) { SyncMode.Dispose(); SyncMode = null; } if (WANServiceUri != null) { WANServiceUri.Dispose(); WANServiceUri = null; } if (SaveChangesBtn != null) { SaveChangesBtn.Dispose(); SaveChangesBtn = null; } if (LANServiceUri != null) { LANServiceUri.Dispose(); LANServiceUri = null; } if (LastSuccessfulDataPush != null) { LastSuccessfulDataPush.Dispose(); LastSuccessfulDataPush = null; } if (LogView != null) { LogView.Dispose(); LogView = null; } if (LastSuccessfulServiceUpdate != null) { LastSuccessfulServiceUpdate.Dispose(); LastSuccessfulServiceUpdate = null; } }
public void OnConnectionTimeout(ConnectionTimeout connectionTimeout) { this.connectionTimeout = connectionTimeout; }