Example #1
0
 private LoopbackHost(IPlatibusConfiguration configuration)
 {
     if (configuration == null) throw new ArgumentNullException("configuration");
     _baseUri = new Uri("http://localhost");
     _bus = new Bus(configuration, _baseUri, _transportService, new InMemoryMessageQueueingService());
     _transportService = new LoopbackTransportService(_bus.HandleMessage);
 }
Example #2
0
        private LoopbackHost(ILoopbackConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            // Placeholder value; required by the bus
            var baseUri          = configuration.BaseUri;
            var transportService = new LoopbackTransportService(configuration.MessageJournal);

            _bus = new Bus(configuration, baseUri, transportService, configuration.MessageQueueingService);
        }