Ejemplo n.º 1
0
        /// <summary>
        /// Deletes the sticker.
        /// </summary>
        /// <param name="ct">(Optional) A cancellation token for async processing.</param>
        /// <remarks>
        /// This permanently deletes the sticker 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)
        {
            await _context.Delete(ct);

            if (TrelloConfiguration.RemoveDeletedItemsFromCache)
            {
                TrelloConfiguration.Cache.Remove(this);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deletes the card.
 /// </summary>
 /// <remarks>
 /// This permanently deletes the card 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);
 }