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; }
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; }
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; }
public GatewayConfigurationBuilder WithUserCredential(UserCrenedtial userCrenedtial) { _userCrenedtial = userCrenedtial; return(this); }