コード例 #1
0
        public static void PutExpiryTicket(this TicketBox box, string name, DateTime expiration)
        {
            ExpiryTicket ticket = new ExpiryTicket(name, expiration);

            box.Put(ticket);
        }
コード例 #2
0
        public static void PutTicket(this TicketBox box, string name)
        {
            NormalTicket ticket = new NormalTicket(name);

            box.Put(ticket);
        }
コード例 #3
0
 public static void Remove(this TicketBox box, string ticketName)
 {
     box.Remove(box.FindSpecificTicket(ticketName));
 }
コード例 #4
0
        public static void PutLimitedTicket(this TicketBox box, string name, int count)
        {
            LimitedUseTicket ticket = new LimitedUseTicket(name, count);

            box.Put(ticket);
        }