File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using System . Diagnostics . CodeAnalysis ;
12using System . IO ;
23using System . Reflection ;
34using System . Runtime . Loader ;
45
56namespace PSCompression . Shared ;
67
8+ [ ExcludeFromCodeCoverage ]
79public sealed class LoadContext : AssemblyLoadContext
810{
911 private static LoadContext ? _instance ;
@@ -65,8 +67,7 @@ public static Assembly Initialize()
6567 Path . GetDirectoryName ( assemblyPath ) ! ,
6668 $ "{ moduleName } .dll") ;
6769
68- _instance = new LoadContext ( modulePath ) ;
69- return _instance . _moduleAssembly ;
70+ return new LoadContext ( modulePath ) . _moduleAssembly ;
7071 }
7172 }
7273}
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
3+ using System . Diagnostics . CodeAnalysis ;
34using System . Reflection ;
45using System . Runtime . Loader ;
56
6- namespace PowerShellKusto . Shared ;
7+ namespace PSCompression . Shared ;
78
9+ [ ExcludeFromCodeCoverage ]
810internal sealed class SharedUtil
911{
1012 public static void AddAssemblyInfo ( Type type , Dictionary < string , object > data )
You can’t perform that action at this time.
0 commit comments