lync 2013 - Ucma4 Delayed Response when using PresenceServices BeginPresenceQuery -


on test machine , when sending request front end, have great response (two seconds). on production, request takes 30 sec or more , organization have more 5000 users. if have away sips status using ucma? ucwa cannot using. any idea ?

code :

public dictionary<string, string> getagentsavailability(list<string> usersuris) {     lock (lockobj)     {         agentsavailability = new dictionary<string, string>();         try         {             if (usersuris != null && usersuris.count > 0)             {                 iasyncresult agentavailabilitycheck = applicationendpoint.presenceservices.beginpresencequery(usersuris, new string[] { "state" },null, null);                 waithandle[] w = new waithandle[] { agentavailabilitycheck.asyncwaithandle };                 waithandle.waitall(w, 3000);            }             else             {                 writeentry.elog("platform - getagentsavailability - no agent sips check.", eventlogentrytype.information);             }         }         catch (exception ex)         {             writeentry.elog(ex.tostring(), eventlogentrytype.error);             throw;         }         return agentsavailability;     } } 

for such large number of users i'd recommend using presence subscription inform of current presence , presence changes rather trying check presence of users @ once.

see following microsoft article on working presence , groups more details https://msdn.microsoft.com/en-us/library/office/hh456406(v=office.14).aspx

there's quite lot on above link functionality after centred on remotepresenceview class.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -