public LocalBoundedContextRegistration RoutedFromSameEndpoint( )
        {
            LocalBoundedContextRegistration registration = null;

            foreach (var endpoint in m_ListenEndpoints)
            {
                registration = RoutedFrom(endpoint.Key, endpoint.Value);
            }
            return(registration);
        }
 public RoutedToDescriptor(LocalBoundedContextRegistration registration, Type[] types, string publishEndpoint)
 {
     m_PublishEndpoint = publishEndpoint;
     m_Types           = types;
     m_Registration    = registration;
 }
 public LocalPublishingEventsDescriptor(Type[] types, LocalBoundedContextRegistration registration)
 {
     m_Registration = registration;
     m_Types        = types;
 }
 public RoutedFromDescriptor(LocalBoundedContextRegistration registration, Type[] types, string listenEndpoint, CommandPriority priority)
 {
     m_ListenEndpoints[listenEndpoint] = priority;
     m_Types        = types;
     m_Registration = registration;
 }
 public LocalListeningCommandsDescriptor(Type[] types, LocalBoundedContextRegistration registration)
 {
     m_Types        = types;
     m_Registration = registration;
 }