Exemple #1
0
        public static PingMessage SendPing()
        {
            PingMessage        pingMessage = PingService.CreatePingMessage();
            Task <PongMessage> task        = SendPingAsync(pingMessage);

            task.Wait(60000);
            PongMessage pongMessage = task.Result;

            consumer.MessageReceived -= delegates[task];
            return(pingMessage);
        }