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); } } }
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); } } }