コード例 #1
0
        public FileSystemOutputHandler(
            CommandLineOptions commandLineOptions,
            IFileSystem fileSystem,
            IContext <Post, Tag, Page> context,
            ITemplateHandler templateHandler,
            IContentParser contentParser,
            IOptions <SiteConfig> siteConfig,
            ISourceHandler sourceHandler,
            ISlugHelper slugHelper)
        {
            (this.commandLineOptions, this.fileSystem, this.context, this.templateHandler,
             this.contentParser, this.siteConfig, this.sourceHandler, this.slugHelper) =
                (commandLineOptions, fileSystem, context, templateHandler, contentParser, siteConfig.Value, sourceHandler, slugHelper);

            this.site = new { config = this.siteConfig, tags = this.context.Tags.OrderBy(t => t.Name), pages = this.context.Pages };
        }
コード例 #2
0
 public SlugGenerator()
 {
     _slugHelper = new SlugHelper();
 }
コード例 #3
0
ファイル: EmbedService.cs プロジェクト: disunity-hq/disinfo
 public EmbedService(DbService dbService, ISlugHelper slugHelper)
 {
     _dbService  = dbService;
     _slugHelper = slugHelper;
 }
 public AbstractFileSystemInstanceProvider(DirectoryInfo baseDir, ILogger logger)
 {
     _slug = new SlugHelper(new SlugHelper.Config());
     _baseDirectory = baseDir;
     _logger = logger;
 }