private async Task OnRequestPostCompileFile(PostCompileFileArgs args) { if (PostCompileFile != null) { foreach (PostCompileFileDelegate del in PostCompileFile.GetInvocationList()) { await del.Invoke(args); } } }
public Task PostCompileFile(PostCompileFileArgs args) { if (RequestPostCompileFile != null) { return(RequestPostCompileFile.Invoke(args)); } else { return(Task.CompletedTask); } }
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(); }