Esempio n. 1
0
        /// <summary>
        /// Deletes the token.
        /// </summary>
        /// <param name="ct">(Optional) A cancellation token for async processing.</param>
        /// <remarks>
        /// This permanently deletes the token from Trello's server, however, this object will remain in memory and all properties will remain accessible.
        /// </remarks>
        public async Task Delete(CancellationToken ct = default(CancellationToken))
        {
            await _context.Delete(ct);

            if (TrelloConfiguration.RemoveDeletedItemsFromCache)
            {
                TrelloConfiguration.Cache.Remove(this);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Deletes the token.
 /// </summary>
 /// <remarks>
 /// This permanently deletes the token from Trello's server, however, this object will
 /// remain in memory and all properties will remain accessible.
 /// </remarks>
 public void Delete()
 {
     _context.Delete();
     TrelloConfiguration.Cache.Remove(this);
 }