Exemplo n.º 1
0
 /// <summary>
 /// Callback method after data retrieval is complete.
 /// </summary>
 /// <param name="asyncResult">Async result refrence.</param>
 private void RetrieveCompleted(IAsyncResult asyncResult)
 {
     lock (m_syncRoot)
     {
         ContactCenterDiscoveryAsyncResult contactCenterDiscoveryAsyncResult = asyncResult as ContactCenterDiscoveryAsyncResult;
         if (contactCenterDiscoveryAsyncResult.Exception == null)
         {
             //Update only in successful cases.
             m_contactCenterInformation = contactCenterDiscoveryAsyncResult.EndInvoke();
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Get uri from queue name.
        /// </summary>
        /// <param name="queueName">Queue name.</param>
        /// <returns>Uri value from queue name.</returns>
        internal string GetUriFromQueueName(string queueName)
        {
            string retVal = queueName;
            ContactCenterInformation ccInfo = this.ContactCenterInformation;

            if (!string.IsNullOrEmpty(queueName) && ccInfo != null)
            {
                string uriValue = ccInfo.GetUriFromQueueName(queueName);
                //If we cannot find the uri valuejust return the queue name.
                if (!String.IsNullOrEmpty(uriValue))
                {
                    retVal = uriValue;
                }
            }
            return(retVal);
        }