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;
            }
        }
示例#2
0
 protected override void PreBuild()
 {
     _busEndpointConfigurator.Apply(this);
 }