C# CefSharp-实施ChromiumFX';访问方法

C# CefSharp-实施ChromiumFX';访问方法,c#,winforms,cefsharp,chromium-embedded,C#,Winforms,Cefsharp,Chromium Embedded,我们的项目(WinForms)从ChromiumFX(已经过时)迁移到CefSharp。 我有以下代码片段: private string sourceSnapshot; void OnLoad(EventArgs e) { CfxStringVisitor cfxStringVisitor = new CfxStringVisitor(); cfxStringVisitor.Visit += GetSourceProcessor; ... } private void GetSourcePr

我们的项目(WinForms)从ChromiumFX(已经过时)迁移到CefSharp。 我有以下代码片段:

private string sourceSnapshot;

void OnLoad(EventArgs e) {
CfxStringVisitor cfxStringVisitor = new CfxStringVisitor();
cfxStringVisitor.Visit += GetSourceProcessor;
...
}
private void GetSourceProcessor(object sender, CfxStringVisitorVisitEventArgs e)
{
sourceSnapshot = e.String;
//some other stuff
}
在CFX中,CfxStringVisitor.Visit是一个事件处理程序,但在CefSharp中,TaskStringVisitor.Visit()是一个方法。我被困在如何重写这个问题上。也许我甚至不需要在新版本的代码中使用Visit()? 请帮忙