public async Task <IActionResult> Delete(string id)
        {
            await _containerService.DeleteContainerAsync(id);

            List <ContainerInfoViewModel> containers = await _containerService.ContainerList();

            return(View("List", containers));
        }
Example #2
0
        private async Task CleanUpTerminatedContainerAsync(Message message)
        {
            if (string.IsNullOrEmpty(message.Payload))
            {
                throw new Exception("Message payload does not container ACI resource ID.");
            }

            await service.DeleteContainerAsync(message.Payload);
        }