Skip to content

iw4madminapplicationmisc ServerDataViewer

RaidMax edited this page May 21, 2023 · 1 revision

ServerDataViewer Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph IW4MAdmin.Application.Misc
  IW4MAdmin.Application.Misc.ServerDataViewer[[ServerDataViewer]]
  end
  subgraph SharedLibraryCore.Interfaces
  SharedLibraryCore.Interfaces.IServerDataViewer[[IServerDataViewer]]
  class SharedLibraryCore.Interfaces.IServerDataViewer interfaceStyle;
  end
SharedLibraryCore.Interfaces.IServerDataViewer --> IW4MAdmin.Application.Misc.ServerDataViewer
Loading

Members

Methods

Public methods

Returns Name
Task<(int Item1, int Item2)> ClientCountsAsync(Nullable<TimeSpan> overPeriod, Nullable<Game> gameCode, CancellationToken token)
Task<IEnumerable<ClientHistoryInfo>> ClientHistoryAsync(Nullable<TimeSpan> overPeriod, CancellationToken token)
Task<(Nullable<int> Item1, Nullable<DateTime> Item2)> MaxConcurrentClientsAsync(Nullable<long> serverId, Nullable<Game> gameCode, Nullable<TimeSpan> overPeriod, CancellationToken token)
Task<int> RankedClientsCountAsync(Nullable<long> serverId, CancellationToken token)

Details

Inheritance

Constructors

ServerDataViewer

Source code

public ServerDataViewer(ILogger<ServerDataViewer> logger, IDataValueCache<EFServerSnapshot, (Nullable<int> Item1, Nullable<DateTime> Item2)> snapshotCache, IDataValueCache<EFClient, (int Item1, int Item2)> serverStatsCache, IDataValueCache<EFServerSnapshot, List<ClientHistoryInfo>> clientHistoryCache, IDataValueCache<EFClientRankingHistory, int> rankedClientsCache)
Arguments
Type Name Description
ILogger<ServerDataViewer> logger
IDataValueCache<EFServerSnapshot, (Nullable<int> Item1, Nullable<DateTime> Item2)> snapshotCache
IDataValueCache<EFClient, (int Item1, int Item2)> serverStatsCache
IDataValueCache<EFServerSnapshot, List<ClientHistoryInfo>> clientHistoryCache
IDataValueCache<EFClientRankingHistory, int> rankedClientsCache

Methods

MaxConcurrentClientsAsync

Source code

public virtual async Task<(Nullable<int> Item1, Nullable<DateTime> Item2)> MaxConcurrentClientsAsync(Nullable<long> serverId, Nullable<Game> gameCode, Nullable<TimeSpan> overPeriod, CancellationToken token)
Arguments
Type Name Description
Nullable<long> serverId
Nullable<Game> gameCode
Nullable<TimeSpan> overPeriod
CancellationToken token

ClientCountsAsync

Source code

public virtual async Task<(int Item1, int Item2)> ClientCountsAsync(Nullable<TimeSpan> overPeriod, Nullable<Game> gameCode, CancellationToken token)
Arguments
Type Name Description
Nullable<TimeSpan> overPeriod
Nullable<Game> gameCode
CancellationToken token

ClientHistoryAsync

Source code

public virtual async Task<IEnumerable<ClientHistoryInfo>> ClientHistoryAsync(Nullable<TimeSpan> overPeriod, CancellationToken token)
Arguments
Type Name Description
Nullable<TimeSpan> overPeriod
CancellationToken token

RankedClientsCountAsync

Source code

public virtual async Task<int> RankedClientsCountAsync(Nullable<long> serverId, CancellationToken token)
Arguments
Type Name Description
Nullable<long> serverId
CancellationToken token

Generated with ModularDoc

Clone this wiki locally