public InMemoryTransportProvider(IInMemoryHostConfiguration hostConfiguration, IInMemoryTopologyConfiguration topologyConfiguration)
        {
            _hostConfiguration     = hostConfiguration;
            _topologyConfiguration = topologyConfiguration;

            _messageFabric = new Lazy <IMessageFabric>(() => new MessageFabric(hostConfiguration.TransportConcurrencyLimit));
        }
        public InMemoryBusConfiguration(IInMemoryTopologyConfiguration topologyConfiguration)
            : base(topologyConfiguration)
        {
            _topologyConfiguration = topologyConfiguration;

            _hosts = new HostCollection <IInMemoryHostConfiguration>();
        }
Esempio n. 3
0
        public InMemoryTopologyConfiguration(IInMemoryTopologyConfiguration topologyConfiguration)
        {
            _messageTopology = topologyConfiguration.Message;
            _sendTopology    = topologyConfiguration.Send;
            _publishTopology = topologyConfiguration.Publish;

            _consumeTopology = new InMemoryConsumeTopology(topologyConfiguration.Message);
        }
        public InMemoryBusConfiguration(IInMemoryTopologyConfiguration topologyConfiguration, Uri baseAddress)
            : base(topologyConfiguration)
        {
            _hostConfiguration        = new InMemoryHostConfiguration(this, baseAddress, topologyConfiguration);
            _busEndpointConfiguration = CreateEndpointConfiguration();

            _busObservers = new BusObservable();
        }
Esempio n. 5
0
        public InMemoryHostConfiguration(IInMemoryBusConfiguration busConfiguration, Uri baseAddress, IInMemoryTopologyConfiguration topologyConfiguration)
        {
            _busConfiguration      = busConfiguration;
            _topologyConfiguration = topologyConfiguration;

            _hostAddress = baseAddress ?? new Uri("loopback://localhost/");

            TransportConcurrencyLimit = Environment.ProcessorCount;

            _sendTransportCacheConfigurator = new CacheConfigurator();

            _proxy = new InMemoryHostProxy();
        }
Esempio n. 6
0
 InMemoryEndpointConfiguration(IInMemoryEndpointConfiguration parentConfiguration, IInMemoryTopologyConfiguration topologyConfiguration,
                               IConsumePipe consumePipe = null)
     : base(parentConfiguration, topologyConfiguration, consumePipe)
 {
     _topologyConfiguration = topologyConfiguration;
 }
        public InMemoryHostConfiguration(IInMemoryBusConfiguration busConfiguration, Uri baseAddress, IInMemoryTopologyConfiguration topologyConfiguration)
            : base(busConfiguration)
        {
            _busConfiguration = busConfiguration;

            _hostAddress  = baseAddress ?? new Uri("loopback://localhost/");
            _hostTopology = new InMemoryHostTopology(this, topologyConfiguration);

            TransportConcurrencyLimit = Math.Min(Environment.ProcessorCount, 4);

            ReceiveTransportRetryPolicy = Retry.CreatePolicy(x =>
            {
                x.Handle <ConnectionException>();

                x.Exponential(1000, TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(3));
            });

            _transportProvider = new Recycle <IInMemoryTransportProvider>(() => new InMemoryTransportProvider(this, topologyConfiguration));
        }
Esempio n. 8
0
 public InMemoryHostTopology(IInMemoryTopologyConfiguration configuration)
     : base(configuration)
 {
     _configuration = configuration;
 }
        public InMemoryHostConfiguration(IInMemoryBusConfiguration busConfiguration, Uri baseAddress, IInMemoryTopologyConfiguration topologyConfiguration)
            : base(busConfiguration)
        {
            _busConfiguration = busConfiguration;

            _hostAddress  = baseAddress ?? new Uri("loopback://localhost/");
            _hostTopology = new InMemoryHostTopology(this, topologyConfiguration);

            TransportConcurrencyLimit = Math.Min(Environment.ProcessorCount, 4);

            _transportProvider = new Recycle <IInMemoryTransportProvider>(() => new InMemoryTransportProvider(this, topologyConfiguration));
        }
Esempio n. 10
0
 public InMemoryHostTopology(IInMemoryTopologyConfiguration topologyConfiguration)
     : base(topologyConfiguration)
 {
     _topologyConfiguration = topologyConfiguration;
 }
 InMemoryEndpointConfiguration(IInMemoryEndpointConfiguration parentConfiguration, IInMemoryTopologyConfiguration topologyConfiguration)
     : base(parentConfiguration, topologyConfiguration)
 {
     _topologyConfiguration = topologyConfiguration;
 }
 protected InMemoryEndpointConfiguration(IInMemoryTopologyConfiguration topologyConfiguration)
     : base(topologyConfiguration)
 {
     _topologyConfiguration = topologyConfiguration;
 }