public MessagingInfrastructure(string type,
                                IMessagingInfrastructureReceiverFactory receiveInfrastructure,
                                IMessagingInfrastructureDispatcherFactory dispatchInfrastructure,
                                IBrokeredMessagePathBuilder pathBuilder)
 {
     Type = type;
     _receiveInfrastructure  = receiveInfrastructure;
     _dispatchInfrastructure = dispatchInfrastructure;
     _pathBuilder            = pathBuilder ?? throw new System.ArgumentNullException(nameof(pathBuilder));
 }
 public MessagingInfrastructure(string type,
                                IMessagingInfrastructureReceiverFactory receiveInfrastructure,
                                IMessagingInfrastructureDispatcherFactory dispatchInfrastructure)
     : this(type, receiveInfrastructure, dispatchInfrastructure, new DefaultBrokeredMessagePathBuilder())
 {
 }