示例#1
0
 private static async Task <DependencyContext> GetDependencyContextFromPluginAssemblyAsync <T>(IPluginLoadContext pluginLoadContext, IDepsFileProvider <T> depsFileProvider)
 {
     return(new DependencyContextJsonReader().Read(await depsFileProvider.ProvideDepsFile(pluginLoadContext)));
 }
示例#2
0
 private static DependencyContext GetDependencyContextFromPluginAssembly <T>(IPluginLoadContext pluginLoadContext, IDepsFileProvider <T> depsFileProvider)
 {
     return(new DependencyContextJsonReader().Read(depsFileProvider.ProvideDepsFile(pluginLoadContext).Result));
 }