Exemple #1
0
        public override Task OnConnected()
        {
            IEnumerable <Environment> environments = Environments.GetEnvironments(Global.CreateAmazonClient()).Select(Map);

            Clients.All.signal(environments);

            return(base.OnConnected());
        }
 public IEnumerable <Environment> Index()
 {
     return(Environments.GetEnvironments(Global.CreateAmazonClient()).Select(Map));
 }
Exemple #3
0
 public IEnumerable <Environment> Envs()
 {
     return(Environments.GetEnvironments(_ec2));
 }
        private IEnumerable <Environment> GetTurnedOffEnvironments()
        {
            var envs = Environments.GetEnvironments(Global.CreateAmazonClient());

            return(envs.Where(e => e.State != "running").ToList());
        }