コード例 #1
0
        public async Task <string> GetRSi([FromRoute] string user, [FromRoute] string sigma, [FromBody] IEnumerable <string> deltas)
        {
            var sign = await GetSign(user).ComputeSign(sigma.DecodeBase64Url(), deltas.Select(itm => ResponseDelta.Parse(itm)));

            return(sign.ToString());
        }
コード例 #2
0
        public async Task <string> GetRSi([FromRoute] string user, [FromRoute] string sigma, [FromQuery] IEnumerable <string> deltas)
        {
            if (deltas == null || !deltas.Any())
            {
                return(null);
            }

            var sign = await GetSign(user).ComputeSign(sigma.DecodeBase64Url(), deltas.Select(itm => ResponseDelta.Parse(itm.DecodeBase64Url())));

            return(sign.ToString());
        }