Esempio n. 1
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. 2
0
 public static void ApplySendEndpointCacheDefaults(this ICacheConfigurator configurator)
 {
     configurator.Capacity = Capacity;
     configurator.MinAge   = MinAge;
     configurator.MaxAge   = MaxAge;
 }