Esempio n. 1
0
 public bool Equals(Deploy other)
 {
     if (other == null)
     {
         return(false);
     }
     return(((string.IsNullOrEmpty(Mailbox) && string.IsNullOrEmpty(other.Mailbox)) || string.Equals(Mailbox, other.Mailbox)) &&
            string.Equals(Dispatcher, other.Dispatcher) &&
            string.Equals(Path, other.Path) &&
            RouterConfig.Equals(other.RouterConfig) &&
            ((Config.IsNullOrEmpty() && other.Config.IsNullOrEmpty()) || Config.ToString().Equals(other.Config.ToString())) &&
            (Scope == null && other.Scope == null || (Scope != null && Scope.Equals(other.Scope))));
 }