コード例 #1
0
 public override void Run()
 {
     StartModule.Action(this);
     while (true)
     {
         LoopingModule.Action(this);
     }
 }
コード例 #2
0
 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
         })
     });
 }