我使用 AppDomain.AssemblyResolve 事件从 Winforms UI 中的远程服务器动态加载大型程序集。是否可以使我的程序集解析方法异步?
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) // how to make it async?
{
// some logic where I need to use await operator
}