public void Dispose() { if (m_oAssemblyExplorerDomain != null) { AppDomain.Unload(m_oAssemblyExplorerDomain); m_oAssemblyExplorerDomain = null; m_managedExplorer = null; } }
private IAssemblyExplorer CreateAssemblyExplorer(string customizationDir) { if (m_managedExplorer == null) { m_managedExplorer = (IAssemblyExplorer)m_oAssemblyExplorerDomain.CreateInstanceAndUnwrap( typeof(AssemblyExplorer).Assembly.FullName, typeof(AssemblyExplorer).FullName); } m_managedExplorer.CustomizationDir = customizationDir; return(m_managedExplorer); }
public TypeExplorer(IAssemblyExplorer assemblyExplorer) { _types = assemblyExplorer.Assemblies .SelectMany(a => a.GetExportedTypes()) .Where(type => type.IsPublic || type.IsNestedPublic) .Where(e => e.GetCustomAttribute <SuppressAutoAttribute>() == null) .ToArray(); _classes = _types .Where(type => !type.IsAbstract && type.IsClass) .Where(e => e.GetCustomAttribute <SuppressAutoAttribute>() == null) .ToArray(); _interfaces = _types .Where(type => type.IsInterface) .Where(e => e.GetCustomAttribute <SuppressAutoAttribute>() == null) .ToArray(); }
public AssemblyLoader(IAssemblyExplorer assemblyExplorer, ISuiteControllerFactory suiteControllerFactory) { _assemblyExplorer = assemblyExplorer; _suiteControllerFactory = suiteControllerFactory; }
public RegisterCoreElementsModule(IAssemblyExplorer assemblyExplorer, ITypeExplorer typeExplorer, IAppInfo appInfo) { _assemblyExplorer = assemblyExplorer; _typeExplorer = typeExplorer; _appInfo = appInfo; }