Esempio n. 1
0
        public static MysteryApp getMystery(this object current)
        {
            //making sure it is instanced
            AssemblyRegister ar = _mystery.AssemblyRegister;

            return(_mystery);
        }
Esempio n. 2
0
        public void flushAll()
        {
            IEnumerable <Assembly> registered = default(IEnumerable <Assembly>);

            if (_AssemblyRegister != null)
            {
                registered = _AssemblyRegister.getAssemblyRegistered();
            }
            else
            {
                registered = new List <Assembly>();
            }

            _AssemblyRegister = new AssemblyRegister();
            foreach (Assembly ass in registered)
            {
                _AssemblyRegister.Register(ass);
            }
            if (flushRequest != null)
            {
                flushRequest();
            }
        }