Exemple #1
0
        public Token(EventPlanner planner)
        {
            RandomNumberGenerator random = RandomNumberGenerator.Create();

            byte[] randomBytes = new byte[256];
            this.planner = planner;
            random.GetNonZeroBytes(randomBytes);
            TokenString = randomBytes.ToString();
            ExpireDate  = DateTime.Now.AddSeconds(3600);
        }
Exemple #2
0
 public EventParty(string name, DateTime dt, string location, EventPlanner planner,
                   Client client, Dictionary <string, Guest> guestList, int tableSize, int emptySeats,
                   string status)
 {
     Name          = name;
     EventDate     = dt;
     EventLocation = location;
     Planner       = planner;
     Client        = client;
     GuestList     = guestList;
     TableSize     = tableSize;
     EmptySeats    = emptySeats;
     Status        = status;
 }