示例#1
0
 private async Task OnRequestPostCompileFile(PostCompileFileArgs args)
 {
     if (PostCompileFile != null)
     {
         foreach (PostCompileFileDelegate del in PostCompileFile.GetInvocationList())
         {
             await del.Invoke(args);
         }
     }
 }
示例#2
0
 public Task PostCompileFile(PostCompileFileArgs args)
 {
     if (RequestPostCompileFile != null)
     {
         return(RequestPostCompileFile.Invoke(args));
     }
     else
     {
         return(Task.CompletedTask);
     }
 }
示例#3
0
        public async IAsyncEnumerable <IFile> Compile(ISite site)
        {
            await m_Ext.PreCompile(site);

            await foreach (var file in CompileAll(site.MainPage, site, Location.Empty))
            {
                var args = new PostCompileFileArgs()
                {
                    File = file
                };

                await m_Ext.PostCompileFile(args);

                yield return(args.File);
            }

            await m_Ext.PostCompile();
        }