コード例 #1
0
        public static void RegisterAssemblyFile(this IComponentContext context, string path)
        {
            var assembly = Assembly.LoadFile(path);

            context.RegisterAssembly(assembly);
        }
コード例 #2
0
        public static void RegisterAssembly(this IComponentContext context, string name)
        {
            var assembly = Assembly.Load(name);

            context.RegisterAssembly(assembly);
        }