コード例 #1
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;
 }
コード例 #2
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;
 }