Beispiel #1
0
 private void tryToMatch(PublishedMessage sender, Subscription receiver)
 {
     if (MessageRoute.TryToRoute(sender, receiver, out MessageRoute route,
                                 out PublisherSubscriberMismatch mismatch))
     {
         _routes.Add(route);
     }
Beispiel #2
0
 protected bool Equals(PublishedMessage other)
 {
     return(string.Equals(MessageType, other.MessageType) && string.Equals(ServiceName, other.ServiceName) && ContentTypes.SequenceEqual(other.ContentTypes) && Transports.SequenceEqual(other.Transports));
 }