internal BlazeSoft.Net.Web.Module GetInstance(Contract.Module Module) { BlazeSoft.Net.Web.Module ModuleInstance; if (!ModuleInstances.ContainsKey(Module.ID)) { ModuleInstance = Module.Instance; ModuleInstance.CoreModule = Module; ModuleInstance.ModuleSession = this; Debug.StartTimer("Module:" + Module.ID + ":Initialize()"); ModuleInstance.Initialize(); Debug.StopTimer("Module:" + Module.ID + ":Initialize()"); ModuleInstances.Add(Module.ID, ModuleInstance); } else { ModuleInstance = ModuleInstances[Module.ID]; } return(ModuleInstance); }