示例#1
0
 public DocumentationService(ILogger <DocumentationService> logger, IOptions <LiveDocsOptions> options, IWebHostEnvironment hostingEnvironment, SearchPipeline searchPipeline)
 {
     _Logger             = logger;
     _Options            = options.Value;
     _HostingEnvironment = hostingEnvironment;
     _SearchPipeline     = searchPipeline;
 }
示例#2
0
 public FileController(ILogger <FileController> logger, IWebHostEnvironment hostEnvironment, IOptions <LiveDocsOptions> options, IDocumentationService documentationService)
 {
     _Logger               = logger;
     _HostEnvironment      = hostEnvironment;
     _Options              = options.Value;
     _DocumentationService = documentationService;
 }
示例#3
0
 public DocumentationService(ILogger <DocumentationService> logger, IOptions <LiveDocsOptions> options, IWebHostEnvironment hostingEnvironment, MarkdownPipeline markdownPipeline)
 {
     _Logger             = logger;
     _Options            = options.Value;
     _HostingEnvironment = hostingEnvironment;
     _MarkdownPipeline   = markdownPipeline;
 }
示例#4
0
 public ScheduledHostedService(IServiceProvider services, ILogger <ScheduledHostedService> logger, IOptions <LiveDocsOptions> options)
 {
     _Logger   = logger;
     _Services = services;
     _Options  = options.Value;
 }
示例#5
0
 /// <summary>
 /// Create a documentation project.
 /// </summary>
 /// <param name="liveDocsOptions"></param>
 /// <param name="keyPath">Previous KeyPath to the project. If null, the current KeyPath will be empty.</param>
 public DocumentationProject(LiveDocsOptions liveDocsOptions, string keyPath)
 {
     _LiveDocsOptions = liveDocsOptions;
     _KeyPath         = keyPath;
 }