public static void SendColdReservation(string queueName, string containerName) { var sendTask = QueueProvider.AddMessage( queueName: queueName, message: new ExecutionAvailability { CallbackURI = string.Format( format: ServerlessConfiguration.ExecutionTemplate, arg0: containerName) }); MemoryProvider.SendTasks[containerName][sendTask] = true; foreach (var task in MemoryProvider.SendTasks[containerName].Keys.Where(task => task.IsCompleted)) { bool boolean; MemoryProvider.SendTasks[containerName].TryRemove(task, out boolean); } }