示例#1
0
        private async Task <ListTable> GetListInternal(ContextProvider contextProvider, string objectName, string listName, string parameter)
        {
            string    key = Key(objectName, listName, parameter);
            ListTable list;

            byte[] listData = await contextProvider.BusinessProvider.GetData(key);

            if (listData == null)
            {
                BusinessBaseDecorator def = contextProvider.BusinessProvider.GetDecorator(contextProvider, objectName);

                list = def.GetList(contextProvider, listName, parameter);

                await contextProvider.BusinessProvider.StoreData(key, list.Serialize());
            }
            else
            {
                list = new ListTable(contextProvider, listName, listData);
            }

            return(list);
        }
示例#2
0
 public AuthorFilter(ContextProvider contextProvider, BusinessBaseDecorator decorator) : base(contextProvider, decorator, 0)
 {
 }