/// <summary> /// Builds the bus. Container already has registrations for <see cref="IDomainBus"/> as singleton /// and <see cref="IDispatchMessages"/> /// </summary> /// <param name="container"></param> /// <returns></returns> public static IDomainBus Build(IContainerScope container) { configurator.MustNotBeNull(ex: new DomainBusConfigurationException("DomainBus is not configured. Invoke `ServiceBus.Configure()` first.")); return(configurator.Build(container)); }