Beispiel #1
0
        protected EndpointTestFixture()
        {
            var defaultSettings = new EndpointFactoryDefaultSettings();

            _endpointFactoryConfigurator = new EndpointFactoryConfiguratorImpl(defaultSettings);
            _endpointFactoryConfigurator.AddTransportFactory <TTransportFactory>();
            _endpointFactoryConfigurator.SetPurgeOnStartup(true);
        }
Beispiel #2
0
        /// <summary>
        /// c'tor that sets up the endpoint configurator, its default settings,
        /// and uses the class type parameter <see cref="TTransportFactory"/>
        /// as the transport for that endpoint.
        /// </summary>
        protected EndpointTestFixture()
        {
            Buses = new List <IServiceBus>();

            var defaultSettings = new EndpointFactoryDefaultSettings();

            EndpointFactoryConfigurator = new EndpointFactoryConfiguratorImpl(defaultSettings);
            EndpointFactoryConfigurator.AddTransportFactory <TTransportFactory>();
            EndpointFactoryConfigurator.SetPurgeOnStartup(true);
        }
Beispiel #3
0
 protected void AddTransport <T>()
     where T : class, ITransportFactory, new()
 {
     _endpointFactoryConfigurator.AddTransportFactory <T>();
 }