示例#1
0
        public IActionResult SetElementSessionState([FromRoute] string requestId, [FromBody] JObject jobject)
        {
            var element = (Element)jobject.ToObject(typeof(Element));

            _stateRequestService.Set(requestId, element);
            return(Ok());
        }
        public IActionResult SetElementSessionState([FromRoute] string requestId, [FromBody] JObject jobject)
        {
            var element = (Hashtable)jobject.ToObject(typeof(Hashtable));

            _stateRequestService.Set(requestId, element);
            return(Json(new { message = "Session state set" }));
        }
        public async Task RequestStateResponse(string requestId, Element state)
        {
            await Task.FromResult(0);

            _stateRequestService.Set(requestId, state);
        }