コード例 #1
0
        public SlabsDto GetSlabs(ConnectionDto connection)
        {
            SlabsDto slabs = null;

            Cache cache = new Cache(connection);

            cache.Connect();
            slabs = cache.GetSlabs();
            cache.Disconnect();

            return slabs;
        }
コード例 #2
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;
        }
コード例 #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);
        }
コード例 #4
0
        public SlabsDto GetSlabs(ConnectionDto connection)
        {
            SlabsDto slabs = null;

            Cache cache = new Cache(connection);

            cache.Connect();
            slabs = cache.GetSlabs();
            cache.Disconnect();

            return(slabs);
        }
コード例 #5
0
        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);
            }
        }
コード例 #6
0
        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);
            }
        }