Example #1
0
        /// <summary>
        /// if the room is still pending
        /// </summary>
        public Room MakeRoom(int betChoice, int capacityChoice)
        {
            var room = new Room(betChoice, capacityChoice);

            Rooms.Append(ref LastRoomId, room);

            return(room);
        }
Example #2
0
        public static async Task Run([TimerTrigger("0 */5 * * * *")] TimerInfo myTimer, ILogger log)
        {
            log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");

            // for each mail if title is "weekly digest" get the title link and body
            ConcurrentDictionary <String, String> weekly = new ConcurrentDictionary <string, string>();
            Dictionary <String, List <String> >   dict   = await GetMails(new List <string>() { LEET_CODE_Q, HACK_Q });

            dict.Values.ToList().ForEach(e =>
                                         e.GetWeeklyQuestions().ToList().ForEach(a => weekly.Append(a)));
        }