public override void Run() { StartModule.Action(this); while (true) { LoopingModule.Action(this); } }
protected override IEnumerable <KeyValuePair <string, object> > GetClientVariables(HttpContext context) { return(new List <KeyValuePair <string, object> >(1) { RegisterObject( new { CanCreateProject = ProjectSecurity.CanCreateProject(), IsModuleAdmin = ProjectSecurity.CurrentUserAdministrator, StartModule.GetInstance(ProjectsCommonSettings.LoadForCurrentUser().StartModuleType).StartModuleType }) }); }