public static void SendWarmReservation(string queueName, string containerName) { var sendTask = CacheProvider.Enqueue( 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); } }