/// <summary>
 /// Equality comparison
 /// </summary>
 /// <param name="model"></param>
 /// <param name="that"></param>
 /// <returns></returns>
 public static bool IsSameAs(this EndpointModel model, EndpointModel that)
 {
     if (model == that)
     {
         return(true);
     }
     if (model == null || that == null)
     {
         return(false);
     }
     return
         (that.HasSameSecurityProperties(model) &&
          that.Url == model.Url &&
          that.AlternativeUrls.SetEqualsSafe(model.AlternativeUrls));
 }
Example #2
0
 /// <summary>
 /// Equality comparison
 /// </summary>
 /// <param name="model"></param>
 /// <param name="that"></param>
 /// <returns></returns>
 public static bool IsSameAs(this EndpointModel model, EndpointModel that)
 {
     if (model == that)
     {
         return(true);
     }
     if (model == null || that == null)
     {
         return(false);
     }
     if (!that.HasSameSecurityProperties(model))
     {
         return(false);
     }
     if (!that.GetAllUrls().SequenceEqualsSafe(model.GetAllUrls()))
     {
         return(false);
     }
     return(true);
 }