Exemplo n.º 1
0
 protected bool Equals(ReplicationDestination other)
 {
     return(string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            string.Equals(Domain, other.Domain) && string.Equals(ApiKey, other.ApiKey) &&
            string.Equals(Database, other.Database) &&
            TransitiveReplicationBehavior == other.TransitiveReplicationBehavior &&
            IgnoredClient.Equals(other.IgnoredClient) && Disabled.Equals(other.Disabled) &&
            string.Equals(ClientVisibleUrl, other.ClientVisibleUrl));
 }
Exemplo n.º 2
0
 public bool IsEqualTo(ReplicationDestination other)
 {
     return(string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            string.Equals(Domain, other.Domain) && string.Equals(ApiKey, other.ApiKey) &&
            string.Equals(Database, other.Database, StringComparison.InvariantCultureIgnoreCase) &&
            TransitiveReplicationBehavior == other.TransitiveReplicationBehavior &&
            IgnoredClient.Equals(other.IgnoredClient) && Disabled.Equals(other.Disabled) &&
            ((string.Equals(Url, other.Url, StringComparison.InvariantCultureIgnoreCase) && string.IsNullOrWhiteSpace(ClientVisibleUrl)) ||
             (!string.IsNullOrWhiteSpace(ClientVisibleUrl) && string.Equals(ClientVisibleUrl, other.ClientVisibleUrl, StringComparison.InvariantCultureIgnoreCase))));
 }
 public bool IsEqualTo(ReplicationDestination other)
 {
     return(string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            string.Equals(Domain, other.Domain) && string.Equals(ApiKey, other.ApiKey) &&
            string.Equals(Database, other.Database, StringComparison.OrdinalIgnoreCase) &&
            TransitiveReplicationBehavior == other.TransitiveReplicationBehavior &&
            IgnoredClient.Equals(other.IgnoredClient) && Disabled.Equals(other.Disabled) &&
            ((string.Equals(Url, other.Url, StringComparison.OrdinalIgnoreCase) && string.IsNullOrWhiteSpace(ClientVisibleUrl)) ||
             (!string.IsNullOrWhiteSpace(ClientVisibleUrl) && string.Equals(ClientVisibleUrl, other.ClientVisibleUrl, StringComparison.OrdinalIgnoreCase))) &&
            Extensions.DictionaryExtensions.ContentEquals(SpecifiedCollections, other.SpecifiedCollections));
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Domain != null ? Domain.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApiKey != null ? ApiKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Database != null ? Database.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)TransitiveReplicationBehavior;
         hashCode = (hashCode * 397) ^ IgnoredClient.GetHashCode();
         hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (ClientVisibleUrl != null ? ClientVisibleUrl.GetHashCode() : 0);
         return(hashCode);
     }
 }