public async Task <IActionResult> Post1()
        {
            await _service.AddRosterAsync(RosterType.BlackList, Common.GlobalApiKey, Policy.Ip, null, TimeSpan.FromSeconds(60), HttpContext.IpAddress());

            var data = await _service.GetRosterListAsync(RosterType.BlackList, Common.GlobalApiKey, Policy.Ip, null);

            return(Json(data));
        }
 public async Task AddBlackList()
 {
     var ip = GetIpAddress(HttpContext);
     //添加IP黑名单
     await _service.AddRosterAsync(RosterType.BlackList, "WebApiTest.Controllers.ValuesController.AddBlackList", Policy.Ip, null, TimeSpan.FromSeconds(60), ip);
 }