예제 #1
0
        private void OnMessage(string routingKey, byte[] msg)
        {
            _log.LogInformation("Received ping request in pbx listener");
            var req  = PingRequest.Parser.ParseFrom(msg);
            var resp = new PingResponse {
                PingCookie = req.PingCookie
            };

            _ch.Publish(PBXConnectorTopics.PbxPingResponse, resp);
        }