public static MysteryApp getMystery(this object current) { //making sure it is instanced AssemblyRegister ar = _mystery.AssemblyRegister; return(_mystery); }
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(); } }