public static TokenOperationResult CancelAccessToken(Member grantee, string tokenId) { var accessToken = grantee.GetToken(tokenId).Result; return(grantee.CancelToken(accessToken).Result); }
/// <summary> /// Cancels a transfer token. /// </summary> /// <param name="grantor">grantor Token member</param> /// <param name="tokenId">token ID to cancel</param> /// <returns>operation result</returns> public static TokenOperationResult CancelTransferToken(Member payee, string tokenId) { var transferToken = payee.GetToken(tokenId).Result; return(payee.CancelToken(transferToken).Result); }