示例#1
0
 public async Task <IPageFixed> GetPage()
 {
     if (PageCache == null)
     {
         return(await Task.Run(() => { PageCache = accessor(); PageCache.Option = this.Option; return PageCache; }));
     }
     else
     {
         return(PageCache);
     }
 }
示例#2
0
 public async Task<IPageFixed> GetPage()
 {
     if (PageCache == null)
         return await Task.Run(() => { PageCache = accessor(); PageCache.Option = this.Option; return PageCache; });
     else
         return PageCache;
 }