Ejemplo n.º 1
0
        public Task Ping()
        {
            return(_endpoint.Ping(channel =>
            {
                var envelope = Envelope.ForPing(Destination);

                var props = _endpoint.Channel.CreateBasicProperties();

                _protocol.WriteFromEnvelope(envelope, props);
                props.AppId = "Jasper";

                channel.BasicPublish(_address, props, envelope.Data);
            }));
        }