Esempio n. 1
0
        /// <summary>
        /// 获取可用指令
        /// </summary>
        /// <returns></returns>
        public async Task <List <TokensListDto> > GetAvailableTokenList()
        {
            var allowToken = _messageTokenProvider.GetAllowedTokens();
            var result     = allowToken.Select(x =>
            {
                return(new TokensListDto()
                {
                    Name = L(x.Key),
                    Value = x.Value,
                });
            }).ToList();

            return(await Task.FromResult(result));
        }