Esempio n. 1
0
        private void LoadAssembly(string dll)
        {
            //Load the additional libraries found
            if (!ExtensionLoader.IsLoaded(dll))
            {
                Assembly target = ExtensionLoader.Load(dll);
                //TODO: Verify actually loaded

                _loadedModules[dll].Loaded = true;
            }
        }
Esempio n. 2
0
        private void GetAssemblyInfo(string dll)
        {
            if (!dll.Contains("dpwin") && !dll.Contains("IronstoneCore"))
            {
                AssemblyName info = AssemblyName.GetAssemblyName(dll);
                Module       m    = new Module();
                m.Name            = info.Name;
                m.Version         = info.Version;
                m.UpdateAvailable = false;
                m.Loaded          = false;
                m.Path            = dll;
                if (dll.Contains("ObjectModel"))
                {
                    m.ObjectModel = true;
                }
                else
                {
                    m.ObjectModel = false;
                }

                if (m.Name.Contains("Ironstone"))
                {
                    if (_authentication.AuthenticateModule(dll))
                    {
                        m.Authenticated = true;
                    }
                    else
                    {
                        m.Authenticated = false;
                    }

                    //TODO: Verify actually loaded
                    if (ExtensionLoader.IsLoaded(dll))
                    {
                        m.Loaded = true;
                    }

                    _loadedModules.Add(dll, m);
                }
            }
        }