Exemple #1
0
 public SitemapRepository(
     IEnumerable <ISitemapStrategy> strategies,
     IEntryConverter converter,
     IHostBindingsService hostBindingsService,
     ICache <byte[]> cache)
 {
     if (strategies == null)
     {
         throw new ArgumentNullException("strategies");
     }
     if (converter == null)
     {
         throw new ArgumentNullException("converter");
     }
     if (hostBindingsService == null)
     {
         throw new ArgumentNullException("hostBindingsService");
     }
     if (cache == null)
     {
         throw new ArgumentNullException("cache");
     }
     _strategies          = strategies;
     _converter           = converter;
     _hostBindingsService = hostBindingsService;
     _cache = cache;
 }
 public PageTreeStrategy(
     IContentLoader contentLoader,
     IFilterAccessWrapper filterAccessWrapper,
     IHostBindingsService hostBindingsService)
 {
     if (contentLoader == null) throw new ArgumentNullException("contentLoader");
     if (filterAccessWrapper == null) throw new ArgumentNullException("filterAccessWrapper");
     if (hostBindingsService == null) throw new ArgumentNullException("hostBindingsService");
     _contentLoader = contentLoader;
     _filterAccessWrapper = filterAccessWrapper;
     _hostBindingsService = hostBindingsService;
 }
 public SitemapController(
     ISitemapRepository sitemapRepository,
     IHostBindingsService hostBindingsService,
     HttpRequestBase request)
 {
     if (sitemapRepository == null) throw new ArgumentNullException("sitemapRepository");
     if (hostBindingsService == null) throw new ArgumentNullException("hostBindingsService");
     if (request == null) throw new ArgumentNullException("request");
     _sitemapRepository = sitemapRepository;
     _hostBindingsService = hostBindingsService;
     _request = request;
 }
        public SitemapRepository(
			IEnumerable<ISitemapStrategy> strategies,
			IEntryConverter converter,
            IHostBindingsService hostBindingsService,
			ICache<byte[]> cache)
        {
            if (strategies == null) throw new ArgumentNullException("strategies");
            if (converter == null) throw new ArgumentNullException("converter");
            if (hostBindingsService == null) throw new ArgumentNullException("hostBindingsService");
            if (cache == null) throw new ArgumentNullException("cache");
            _strategies = strategies;
            _converter = converter;
            _hostBindingsService = hostBindingsService;
            _cache = cache;
        }
Exemple #5
0
 public SitemapController(
     ISitemapRepository sitemapRepository,
     IHostBindingsService hostBindingsService,
     HttpRequestBase request)
 {
     if (sitemapRepository == null)
     {
         throw new ArgumentNullException("sitemapRepository");
     }
     if (hostBindingsService == null)
     {
         throw new ArgumentNullException("hostBindingsService");
     }
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     _sitemapRepository   = sitemapRepository;
     _hostBindingsService = hostBindingsService;
     _request             = request;
 }
Exemple #6
0
 public PageTreeStrategy(
     IContentLoader contentLoader,
     IFilterAccessWrapper filterAccessWrapper,
     IHostBindingsService hostBindingsService)
 {
     if (contentLoader == null)
     {
         throw new ArgumentNullException("contentLoader");
     }
     if (filterAccessWrapper == null)
     {
         throw new ArgumentNullException("filterAccessWrapper");
     }
     if (hostBindingsService == null)
     {
         throw new ArgumentNullException("hostBindingsService");
     }
     _contentLoader       = contentLoader;
     _filterAccessWrapper = filterAccessWrapper;
     _hostBindingsService = hostBindingsService;
 }