d331d998c0
Cleaned up WebService class and shutdown reimped stats and topstats moved things out of stats into main code
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using SharedLibrary.Services;
|
|
using StatsPlugin.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StatsPlugin.Helpers
|
|
{
|
|
public class ThreadSafeStatsService
|
|
{
|
|
|
|
public GenericRepository<EFClientStatistics> ClientStatSvc { get; private set; }
|
|
public GenericRepository<EFServer> ServerSvc { get; private set; }
|
|
public GenericRepository<EFClientKill> KillStatsSvc { get; private set; }
|
|
public GenericRepository<EFServerStatistics> ServerStatsSvc { get; private set; }
|
|
public GenericRepository<EFClientMessage> MessageSvc { get; private set; }
|
|
|
|
public ThreadSafeStatsService()
|
|
{
|
|
ClientStatSvc = new GenericRepository<EFClientStatistics>();
|
|
ServerSvc = new GenericRepository<EFServer>();
|
|
KillStatsSvc = new GenericRepository<EFClientKill>();
|
|
ServerStatsSvc = new GenericRepository<EFServerStatistics>();
|
|
MessageSvc = new GenericRepository<EFClientMessage>();
|
|
}
|
|
}
|
|
}
|