コード例 #1
0
        public static async Task TestRequestByIdentity(IAnalyticStore store)
        {
            foreach (var request in MatteoRequests)
            {
                await store.StoreWebRequestAsync(request);
            }

            foreach (var request in FrancoRequests)
            {
                await store.StoreWebRequestAsync(request);
            }

            Assert.Equal(MatteoRequests.Length, (await store.RequestByIdentityAsync("MATTEO")).Count());
            Assert.Equal(FrancoRequests.Length, (await store.RequestByIdentityAsync("FRANCO")).Count());
        }
コード例 #2
0
 public async Task <ActionResult> Identity(string id)
 {
     return(View(new WebStat
     {
         Identity = id,
         Requests = (await _analyticStore.RequestByIdentityAsync(id)).ToArray(),
     }));
 }
コード例 #3
0
 public Task <IEnumerable <WebRequest> > RequestByIdentityAsync(string identity) => store.RequestByIdentityAsync(identity);