コード例 #1
0
 public CQuery(ref CSession parent, int type, List <CSite> sites, string uid)
 {
     Session  = parent;
     Type     = type;
     Sites    = sites;
     Id       = uid;
     Progress = new CTaskInfo {
         Status = new CTaskInfo.State(CTaskInfo.State.Active), Service = Session.Server.Name, StartTime = CFunctions.GetDateTime(0), UID = uid, Details = "Collecting " + CQuery.Types.QueryTypes[Type].ToString().ToLower() + " info from " + Session.Server.Type.ToString() + " " + Session.Server.Name.ToUpper() + " (" + Session.Server.IP.ToString() + ")"
     };
     Log.Write(Progress.Details);
 }
コード例 #2
0
 public void Add(ref CSession session)
 {
     Completed = false;
     if (session.Started)
     {
         session.Started = false;
     }                                                 // even if the session has been started before, we need to resume it
     // Log.Write(" : CSessionManager (queueing session " + session.SessionID + ")", Log.Verbosity.Everything);
     QueuedSessions.Add(session);
     if (QueuedCount == -1)
     {
         QueuedCount = 1;
     }
     else
     {
         QueuedCount++;
     }
 }