Author Topic: Get list of agent with condition on login status  (Read 3848 times)

Offline tbremard

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Get list of agent with condition on login status
« on: November 08, 2011, 09:49:17 AM »
Good Morning,

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

currently we populate our directory with

[code]
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;
        }
[/code]

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

Offline Dorota122

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • sbobet
Re: Get list of agent with condition on login status
« Reply #1 on: November 30, 2011, 10:15:33 AM »
thank you for a very excellent post that you gave everyone here , sucj a great idea and i was looking for it .  :)>

Offline CooperTurner

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Get list of agent with condition on login status
« Reply #2 on: December 02, 2011, 08:04:06 AM »
What is the basic requirement there?  ???