コード例 #1
0
        public async Task <IEnumerable <TestData> > GetAsyncSimpleDataSync(string name)
        {
            string repoType = name;

            repo = TestRepoFactory.GetRepoFromString(repoType);
            return(await Task.Run(() => repo.All()));
        }
コード例 #2
0
        public IEnumerable <TestData> GetSyncSimpleDataSync(string name)
        {
            string repoType = name;

            repo = TestRepoFactory.GetRepoFromString(repoType, Request.GetQueryNameValuePairs().Any(x => x.Key == "usestats"));
            return(repo.All());
        }
コード例 #3
0
 public async Task<IEnumerable<TestData>> GetAsyncSimpleDataSync(string name)
 {
     string repoType = name;
     repo = TestRepoFactory.GetRepoFromString(repoType);
     return await Task.Run(() => repo.All());
 }
コード例 #4
0
 public IEnumerable<TestData> GetSyncSimpleDataSync(string name)
 {
     string repoType = name;
     repo = TestRepoFactory.GetRepoFromString(repoType, Request.GetQueryNameValuePairs().Any(x=>x.Key=="usestats"));
     return repo.All();
 }