コード例 #1
0
        private FusionHelper InitializeFusionHelper()
        {
            // Can effectively just return the current assembly / gallio assemblies / system
            var helper = new FusionHelper(() => m_Assemblies.Keys.ToArray <string>());

            helper.AssemblyLoader = (assemblyPath) =>
            {
                return(m_Assemblies[assemblyPath]);
            };

            return(helper);
        }
コード例 #2
0
 // Private method used to run the FusionHelper.LoadAssembly method
 private static Assembly ExecuteLoadAssembly(FusionHelper helper, string assemblyName)
 {
     return(helper.LocateAssemblyOnAssemblyLoadFailure(null, new ResolveEventArgs(assemblyName)));
 }