public GatewayConfiguration(IReadOnlyCollection<Host> hosts, UserCrenedtial userCredential, ILocator locator, int prefetchCount, int eventSubscriberThreadCount, int commandHandlerThreadCount)
 {
     Hosts = hosts;
     UserCrenedtial = userCredential;
     Locator = locator;
     PrefetchCount = prefetchCount;
     EventSubscriberThreadCount = eventSubscriberThreadCount;
     CommandHandlerThreadCount = commandHandlerThreadCount;
 }
Exemple #2
0
 public GatewayConfiguration(IReadOnlyCollection <Host> hosts, UserCrenedtial userCredential, ILocator locator, int prefetchCount, int eventSubscriberThreadCount, int commandHandlerThreadCount)
 {
     Hosts                      = hosts;
     UserCrenedtial             = userCredential;
     Locator                    = locator;
     PrefetchCount              = prefetchCount;
     EventSubscriberThreadCount = eventSubscriberThreadCount;
     CommandHandlerThreadCount  = commandHandlerThreadCount;
 }
Exemple #3
0
        public GatewayConfigurationBuilder(IGatewayFactory gatewayFactory, ILocator locator) //TODO: Remove gateWay factory
        {
            Contract.Requires(gatewayFactory != null, "GatewayFactory should not be null");
            Contract.Requires(locator != null, "Locator should not be null");

            _gatewayFactory             = gatewayFactory;
            _serviceLocator             = locator;
            _hosts                      = new List <Host>();
            _userCrenedtial             = new UserCrenedtial("guest", "guest");
            _eventSubscriberThreadCount = 1;
            _commandHandlerThreadCount  = 1;
        }
Exemple #4
0
        public GatewayConfigurationBuilder WithUserCredential(UserCrenedtial userCrenedtial)
        {
            _userCrenedtial = userCrenedtial;

            return(this);
        }