Esempio n. 1
0
        public static TokenOperationResult CancelAccessToken(Member grantee, string tokenId)
        {
            var accessToken = grantee.GetToken(tokenId).Result;

            return(grantee.CancelToken(accessToken).Result);
        }
Esempio n. 2
0
        /// <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);
        }