Improvement in realtimestats with MetricService
This commit is contained in:
31
SplashPage.Benchmarks/Tester.cs
Normal file
31
SplashPage.Benchmarks/Tester.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Abp.Dependency;
|
||||
using Abp.Domain.Repositories;
|
||||
using SplashPage.Authorization.Users;
|
||||
using SplashPage.Splash;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SplashPage.Benchmarks
|
||||
{
|
||||
public class Tester : ITransientDependency
|
||||
{
|
||||
private readonly IRepository<SplashWiFiScanningData> _userRepository;
|
||||
|
||||
public Tester(IRepository<SplashWiFiScanningData> userRepository)
|
||||
{
|
||||
_userRepository = userRepository;
|
||||
}
|
||||
|
||||
public void Run()
|
||||
{
|
||||
//GetAllList
|
||||
foreach (var user in _userRepository.GetAllList().Take(2))
|
||||
{
|
||||
Console.WriteLine(user);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user