public IBusControl Build() { try { _busEndpointConfigurator.Apply(this); return(new MassTransitBus(_busEndpointConfigurator.InputAddress, _busConsumePipe, SendEndpointProvider, PublishEndpoint, ReceiveEndpoints, _hosts, BusObservable)); } catch (Exception exception) { TaskUtil.Await(() => BusObservable.CreateFaulted(exception)); throw; } }
protected override void PreBuild() { _busEndpointConfigurator.Apply(this); }