コード例 #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;
 }
コード例 #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;
 }
コード例 #3
0
ファイル: GatewayBuilder.cs プロジェクト: ddd-cqrs-es/CqrsMe
        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;
        }
コード例 #4
0
ファイル: GatewayBuilder.cs プロジェクト: ddd-cqrs-es/CqrsMe
        public GatewayConfigurationBuilder WithUserCredential(UserCrenedtial userCrenedtial)
        {
            _userCrenedtial = userCrenedtial;

            return(this);
        }