private void EnsureLoaderAssemblyIsRegistered(ComponentCatalog catalog)
 {
     if (!string.IsNullOrEmpty(LoaderAssemblyName))
     {
         var assembly = Assembly.Load(LoaderAssemblyName);
         catalog.RegisterAssembly(assembly);
     }
 }
 private static void TryRegisterAssembly(ComponentCatalog catalog, Assembly assembly)
 {
     if (assembly.IsDynamic)
     {
         return;
     }
     if (!CanContainComponents(assembly))
     {
         return;
     }
     catalog.RegisterAssembly(assembly);
 }