Ejemplo n.º 1
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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
0
        public GatewayConfigurationBuilder WithUserCredential(UserCrenedtial userCrenedtial)
        {
            _userCrenedtial = userCrenedtial;

            return(this);
        }