Ejemplo n.º 1
0
        public static void GetLastMessages(ClientInfo clientInfo)
        {
            PushClient client = new PushClient();

            try
            {
                client.GetLastMessagesCompleted += new EventHandler <GetLastMessagesCompletedEventArgs>(client_GetLastMessagesCompleted);
                client.GetLastMessagesAsync(clientInfo);
                client.CloseAsync();
            }
            catch (Exception e)
            {
                client.Abort();
            }
            finally
            {
                client.CloseAsync();
            }
        }