/// <summary>
        /// Deletes the checklist.
        /// </summary>
        /// <param name="ct">(Optional) A cancellation token for async processing.</param>
        /// <remarks>
        /// This permanently deletes the checklist 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);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Deletes the checklist.
 /// </summary>
 /// <remarks>
 /// This permanently deletes the checklist 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);
 }
Beispiel #3
0
 public int Delete(int id)
 {
     return(_CheckListContext.Delete(id));
 }