public static void PutExpiryTicket(this TicketBox box, string name, DateTime expiration) { ExpiryTicket ticket = new ExpiryTicket(name, expiration); box.Put(ticket); }
public static void PutTicket(this TicketBox box, string name) { NormalTicket ticket = new NormalTicket(name); box.Put(ticket); }
public static void Remove(this TicketBox box, string ticketName) { box.Remove(box.FindSpecificTicket(ticketName)); }
public static void PutLimitedTicket(this TicketBox box, string name, int count) { LimitedUseTicket ticket = new LimitedUseTicket(name, count); box.Put(ticket); }