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

            Clients.All.signal(environments);

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

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