Ejemplo n.º 1
0
        public static Task UnloadComponentsFromLibrary(string name)
        {
            var assemblies = AppDomain.CurrentDomain.GetAssemblies();
            var assembly   = assemblies.FirstOrDefault(m => m.FullName == name);

            ActivationService?.UnregisterAll(assembly);
            return(Task.FromResult(true));
        }