public LayoutFileListBuilder(
            IApplicationEnvironment appEnvironment,
            IOptions<LayoutSelectorOptions> layoutOptionsAccessor,
            ILayoutFileDisplayNameFilter layoutDisplayFilter
            )
        {
            if (appEnvironment == null) { throw new ArgumentNullException(nameof(appEnvironment)); }
            if (layoutOptionsAccessor == null) { throw new ArgumentNullException(nameof(layoutOptionsAccessor)); }
            if (layoutDisplayFilter == null) { throw new ArgumentNullException(nameof(layoutDisplayFilter)); }

            appBasePath = appEnvironment.ApplicationBasePath;
            options = layoutOptionsAccessor.Value;
            this.layoutDisplayFilter = layoutDisplayFilter;
        }
Exemple #2
0
        public LayoutFileListBuilder(
            IApplicationEnvironment appEnvironment,
            IOptions <LayoutSelectorOptions> layoutOptionsAccessor,
            ILayoutFileDisplayNameFilter layoutDisplayFilter
            )
        {
            if (appEnvironment == null)
            {
                throw new ArgumentNullException(nameof(appEnvironment));
            }
            if (layoutOptionsAccessor == null)
            {
                throw new ArgumentNullException(nameof(layoutOptionsAccessor));
            }
            if (layoutDisplayFilter == null)
            {
                throw new ArgumentNullException(nameof(layoutDisplayFilter));
            }

            appBasePath = appEnvironment.ApplicationBasePath;
            options     = layoutOptionsAccessor.Value;
            this.layoutDisplayFilter = layoutDisplayFilter;
        }