/// <summary>
 /// Gets a derived collection that contains all known repositories with the specified
 /// clone URL, ordered by name.
 /// </summary>
 /// <param name="repos">The local repositories object.</param>
 /// <param name="address">The address.</param>
 public static IReactiveDerivedList <LocalRepositoryModel> GetRepositoriesForAddress(
     this ILocalRepositories repos,
     HostAddress address)
 {
     return(repos.Repositories.CreateDerivedCollection(
                x => x,
                x => x.CloneUrl != null && address.Equals(HostAddress.Create(x.CloneUrl)),
                OrderedComparer <LocalRepositoryModel> .OrderBy(x => x.Name).Compare));
 }
        /// <summary>
        /// Determine equality
        /// </summary>

        public bool Equals(InstrumentInfo other)
        {
            return(!ReferenceEquals(other, null) &&
                   HostAddress.Equals(other.HostAddress) &&
                   InstrumentType == other.InstrumentType &&
                   Status == other.Status &&
                   Version == other.Version &&
                   SerialNumber == other.SerialNumber &&
                   Description == other.Description);
        }
Beispiel #3
0
        public bool Equals(ConnectionDetails other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(HostAddress.Equals(other.HostAddress) &&
                   string.Equals(UserName, other.UserName, StringComparison.OrdinalIgnoreCase));
        }
Beispiel #4
0
 protected bool Equals(AirBenderHostDeviceDescriptor other)
 {
     return(HostAddress.Equals(other.HostAddress));
 }