Пример #1
0
        public SessionUpdateResponse PostSessionUpdate([FromBody] SessionUpdateRequest sessionUpdateRequest)
        {
            log.Info("PostSessionUpdate " + DataStringProvider.GetDataString(sessionUpdateRequest));
            log.Info("PostSessionUpdate: ServerValidatedSessionID " + sessionUpdateRequest.SessionDetails.ServerValidatedSessionID);
            var response = _caseRepository.SessionUpdate(sessionUpdateRequest);

            return(response);
        }
Пример #2
0
        public ValidationResponse PostValidate([FromBody] ValidationRequest sessionValidationRequest, [FromUri] bool save = true)
        {
            log.Info("PostValidate " + DataStringProvider.GetDataString(sessionValidationRequest));
            var response = _caseRepository.Validate(sessionValidationRequest, save);

            if (save)
            {
                log.Info("PostValidate Save mode, returning ServerValidatedSessionID: " + response.ServerValidatedSessionID);
            }
            else
            {
                log.Info("PostValidate Non-Save Mode, ServerValidatedSessionID: " + response.ServerValidatedSessionID);
            }
            return(response);
        }
Пример #3
0
        protected IList <string> BuildDataStrings(ICollection <object> objects)
        {
            DataStringProvider dataStringProvider = DataStringProvider;

            if (dataStringProvider == null)
            {
                return(null);
            }
            IList <string> result = new List <string>(objects.Count);

            foreach (object o in objects)
            {
                result.Add(dataStringProvider.GenerateDataString(o));
            }
            return(result);
        }