Ejemplo n.º 1
0
        public override ObjectList <T> RequestList <T>(ChannelRequest request)
        {
            var stompRequest  = StompRequest.Create(request, _channelId, _configuration.ReplyTo, _configuration.Destination);
            var returnMessage = SendMessage(stompRequest);

            SecucardTrace.InfoSource("StompChannel.RequestList", returnMessage.EscapeCurlyBracets());
            var response = new Response(returnMessage);

            return(JsonSerializer.DeserializeJson <ObjectList <T> >(response.Data));
        }
Ejemplo n.º 2
0
        private bool?SendSessionRefresh()
        {
            var channelRequest = new ChannelRequest
            {
                Method   = ChannelMethod.Execute,
                Product  = "auth",
                Resource = "sessions",
                Action   = "refresh",
                ObjectId = "me"
            };

            var stompRequest = StompRequest.Create(channelRequest, _channelId, _configuration.ReplyTo,
                                                   _configuration.Destination);
            var returnMessage = SendMessage(stompRequest);

            var response = new Response(returnMessage);

            return(JsonSerializer.DeserializeJson <StompResult>(response.Data).Result);
        }