public HttpBuilderSettings(ICacheSettings cacheSettings, IEnumerable <IHttpHandler> handlers, IEnumerable <IHttpResponseValidator> responseValidators)
            : this()
        {
            CacheSettings     = cacheSettings;
            ResponseValidator = new ResponseValidatorCollection(responseValidators);

            if (handlers != null)
            {
                foreach (var handler in handlers)
                {
                    HandlerRegister.WithHandler(handler);
                }
            }
        }
Ejemplo n.º 2
0
        public TypedBuilderSettings(
            IFormatter formatter,
            ICacheSettings cacheSettings,
            IEnumerable <ITypedHandler> handlers,
            IEnumerable <ITypedResponseValidator> responseValidators)
            : this()
        {
            Formatter         = formatter;
            ResponseValidator = new ResponseValidatorCollection(responseValidators);
            CacheSettings     = cacheSettings;

            if (handlers != null)
            {
                foreach (var handler in handlers)
                {
                    HandlerRegister.WithHandler(handler);
                }
            }
        }