public bool AreYouAlive() { try { bool retVal = false; Connect(); proxy.ForEach(x => { retVal = x.AreYouAlive(); }); tableHelper.AddOrReplaceStanje(new Stanje("OTVORENO")); return(retVal); } catch { tableHelper.AddOrReplaceStanje(new Stanje("ZATVORENO")); WorkerRole.queueHelper.AddToQueue("otvori"); return(false); } }