Jump to content

User9912

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by User9912

  1. On 8/20/2018 at 2:27 PM, Marlon Nardi said:

    Farshad,

     

    If it were possible :), my dream code would be this one.
     
    A mega challenge, however, would benefit many projects :biggrin:.
    
    var
      HS: THyperServer;
      S : TUniGUISessions;
      U : TUniGUISession;
      vI, vII: Integer;
      MyClassOrVar: TMyClassOrVar;
    begin
      if NodeZero then
      begin
        HS := THyperServer.Create;
        HS.Lock;
        try
          for vI := 0 to HS.Nodes.Count -1 do
          begin
            S := HS.Nodes[vI].SessionManager.Sessions;
            for vII := 0 to S.SessionList.Count - 1 do
            begin
              U := S.SessionList[vII];
              MyClassOrVar.Add(TUniMainModule(U.UniMainModule).MyClassOrVar.Name);
            end;
          end;
        finally
          HS.UnLock;
          HS.Free;
        end;
      end;
    end;

    Do I understand correctly that there is no way to go through all the sessions and find out their statuses?  active/discarded

×
×
  • Create New...