示例#1
0
 public LuceneController(ILuceneTasks luceneTasks,
                         IUserTasks userTasks,
                         ISourcePermissionTasks sourcePermissionTasks,
                         IBackgroundTasks backgroundTasks)
 {
     this.luceneTasks           = luceneTasks;
     this.userTasks             = userTasks;
     this.sourcePermissionTasks = sourcePermissionTasks;
     this.backgroundTasks       = backgroundTasks;
 }
示例#2
0
 public string DeleteLog(Context context, IBackgroundTasks backgroundTasks)
 {
     if (Parameters.BackgroundTask.Enabled)
     {
         if (context.QueryStrings.Bool("NoLog"))
         {
             return(backgroundTasks.DeleteLog());
         }
         else
         {
             var log  = new SysLogModel(context: context);
             var html = backgroundTasks.DeleteLog();
             log.Finish(context: context, responseSize: html.Length);
             return(html);
         }
     }
     else
     {
         return(null);
     }
 }