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