public EndpointTestScenarioImpl(IEndpointFactory endpointFactory) { _received = new ReceivedMessageListImpl(); _sent = new SentMessageListImpl(); _skipped = new ReceivedMessageListImpl(); _endpoints = new Dictionary<Uri, EndpointTestDecorator>(); EndpointFactory = new EndpointFactoryTestDecorator(endpointFactory, this); _endpointCache = new EndpointCache(EndpointFactory); EndpointCache = new EndpointCacheProxy(_endpointCache); ServiceBusFactory.ConfigureDefaultSettings(x => { x.SetEndpointCache(EndpointCache); x.SetConcurrentConsumerLimit(4); x.SetConcurrentReceiverLimit(1); x.SetReceiveTimeout(50.Milliseconds()); x.EnableAutoStart(); }); }
protected EndpointTestScenarioImpl(IEndpointFactory endpointFactory) { _received = new ReceivedMessageListImpl(); _sent = new SentMessageListImpl(); _skipped = new ReceivedMessageListImpl(); _published = new PublishedMessageListImpl(); _endpoints = new Dictionary <Uri, EndpointTestDecorator>(); EndpointFactory = new EndpointFactoryTestDecorator(endpointFactory, this); _endpointCache = new EndpointCache(EndpointFactory); EndpointCache = new EndpointCacheProxy(_endpointCache); ServiceBusFactory.ConfigureDefaultSettings(x => { x.SetEndpointCache(EndpointCache); x.SetConcurrentConsumerLimit(4); x.SetConcurrentReceiverLimit(1); x.SetReceiveTimeout(50.Milliseconds()); x.EnableAutoStart(); }); }