示例#1
0
 public override bool Equals(object obj)
 {
     return(obj is InvocationStartRequested requested &&
            ServiceId == requested.ServiceId &&
            MethodId == requested.MethodId &&
            ConsumerApplicationId == requested.ConsumerApplicationId &&
            ConsumerConnectionId.Equals(requested.ConsumerConnectionId) &&
            ServiceAlias.Equals(requested.ServiceAlias));
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ServiceId != null ? ServiceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ServiceAlias.GetHashCode();
         hashCode = (hashCode * 397) ^ (ApplicationId != null ? ApplicationId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ConnectionId.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ServiceId != null ? ServiceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MethodId != null ? MethodId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ServiceAlias.GetHashCode();
         hashCode = (hashCode * 397) ^ (ConsumerApplicationId != null ? ConsumerApplicationId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ConsumerConnectionId.GetHashCode();
         hashCode = (hashCode * 397) ^ ConsumerApplicationInstanceId.GetHashCode();
         return(hashCode);
     }
 }
示例#4
0
 private bool Equals(ProvidedServiceReference other)
 {
     return(string.Equals(ServiceId, other.ServiceId) && ServiceAlias.Equals(other.ServiceAlias) && string.Equals(ApplicationId, other.ApplicationId) && ConnectionId.Equals(other.ConnectionId));
 }
示例#5
0
 private bool Equals(InvocationStartRequested other)
 {
     return(string.Equals(ServiceId, other.ServiceId) && string.Equals(MethodId, other.MethodId) && ServiceAlias.Equals(other.ServiceAlias) && string.Equals(ConsumerApplicationId, other.ConsumerApplicationId) && ConsumerConnectionId.Equals(other.ConsumerConnectionId) && ConsumerApplicationInstanceId.Equals(other.ConsumerApplicationInstanceId));
 }