Get list of agent with condition on login status

Good Morning,

we would like to display login status on a agent directory of our application desktop.

currently we populate our directory with


 internal ICollection<CfgPerson> RetrieveAgents()
        {
            // Creates an instance of the CfgPersonQuery class. 
            // An instance of the configuration service is provided, so the query will be executable. 
            CfgPersonQuery query = new CfgPersonQuery(this.confService);
            ICollection<CfgPerson> ret;

           
            try
            {
                query.IsAgent = (int)CfgFlag.CFGTrue;
                ret = query.Execute();
            }
            catch
            {
                Bandeau.Log.Error("RetrievePersonByName::ExecuteSingleResult() error");
                ret = null;
            }
            return ret;
        }

how could we make a filter on the fact that we want to retrieve only list of agents who are already logged.

alternatively we would like to have call back and know how to set call back when an event : either new logged in or a logged out of an agent occured

Thierry

thank you for a very excellent post that you gave everyone here , sucj a great idea and i was looking for it . :)>

1 Like

What is the basic requirement there? ???

1 Like