コード例 #1
0
ファイル: LinkPhaseHandler.cs プロジェクト: icnocop/docfx
        private InternalManifestItem HandleSaveResult(
            HostService hostService,
            FileModel model,
            SaveResult result)
        {
            Context.SetFilePath(model.Key, ((RelativePath)model.File).GetPathFromWorkingFolder());
            DocumentException.RunAll(
                () => CheckFileLink(model, hostService, result),
                () => HandleUids(result),
                () => RegisterXRefSpec(result));

            return(GetManifestItem(model, result));
        }
コード例 #2
0
 private void HandleSaveResult(
     DocumentBuildContext context,
     HostService hostService,
     FileModel model,
     SaveResult result)
 {
     context.FileMap[((RelativePath)model.OriginalFileAndType.File).GetPathFromWorkingFolder()] = ((RelativePath)model.File).GetPathFromWorkingFolder();
     DocumentException.RunAll(
         () => CheckFileLink(hostService, model, result),
         () => HandleUids(context, model, result),
         () => HandleToc(context, result),
         () => RegisterXRefSpec(context, model, result),
         () => RegisterManifest(context, model, result));
 }
コード例 #3
0
        private ManifestItem HandleSaveResult(
            DocumentBuildContext context,
            HostService hostService,
            FileModel model,
            SaveResult result)
        {
            context.FileMap[model.Key] = ((RelativePath)model.File).GetPathFromWorkingFolder();
            DocumentException.RunAll(
                () => CheckFileLink(hostService, result),
                () => HandleUids(context, result),
                () => HandleToc(context, result),
                () => RegisterXRefSpec(context, result));

            return(GetManifestItem(context, model, result));
        }