public SlabsDto GetSlabs(ConnectionDto connection) { SlabsDto slabs = null; Cache cache = new Cache(connection); cache.Connect(); slabs = cache.GetSlabs(); cache.Disconnect(); return slabs; }
public Collection<ItemDto> GetItems(ConnectionDto connection, SlabDto slab, bool mustRetrieveValues) { Collection<ItemDto> items = null; Cache cache = new Cache(connection); cache.Connect(); items = cache.GetItems(slab); cache.Disconnect(); return items; }
public Collection <ItemDto> GetItems(ConnectionDto connection, SlabDto slab, bool mustRetrieveValues) { Collection <ItemDto> items = null; Cache cache = new Cache(connection); cache.Connect(); items = cache.GetItems(slab); cache.Disconnect(); return(items); }
public SlabsDto GetSlabs(ConnectionDto connection) { SlabsDto slabs = null; Cache cache = new Cache(connection); cache.Connect(); slabs = cache.GetSlabs(); cache.Disconnect(); return(slabs); }
public void Register(ConnectionDto connection) { Cache cache = new Cache(connection); try { cache.Connect(); cache.Disconnect(); CacheRegistrationService.Connections.Add(connection); } catch (Exception ex) { throw new CacheConnectionException(ex.Message, ex); } }