InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。 StackTrace: 在 System.Windows.Threading.Dispatcher.VerifyAccess() 在 Microsoft.Web.WebView2.Wpf.WebView2Base.get_CoreWebView2() 在 CallSite.Target(Closure , CallSite , Object ) 在 __ScriptExecution.__0kqpvrm7.AutoUnzipMonitor.SendMessageToFrontend(String type, Object payload) 在 __ScriptExecution.__0kqpvrm7.AutoUnzipMonitor.ProcessNewFile(String filePath) 在 System.IO.FileSystemWatcher.OnCreated(FileSystemEventArgs e) 在 System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer) 在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)