public ActionResult Index() { //TestGenerateDynamicKey(); var dateTimeToUnixTimestampOne = UnixTimestamp.DateTimeToUnixTimestamp(DateTime.Now); var vOut = Convert.ToUInt32(dateTimeToUnixTimestampOne); var token = new AccessToken(_appId, _appCertificate, _channelName, _uid, vOut, _salt); _expiredTs = vOut + 6000; token.message.ts = vOut; token.message.salt = _salt; token.addPrivilege(Privileges.kJoinChannel, _expiredTs); var result = token.build(); var empd = new EmployeeDataOne(_appId, _channelName, _uid, result.Trim()); return(RedirectToAction("Index", "TestOne", new { appid = empd.AppId, channelname = empd.ChannelName, uid = empd.Uid, token = empd.Token })); }
public IActionResult Index(EmployeeDataOne employeeDataOne) { return(View()); }