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;
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
            }
        }
        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);
            }
        }