1 iw4madminapplicationmisc MetaService
RaidMax edited this page 2023-05-20 22:09:21 -05:00

MetaService Public class

Description

implementation of IMetaService used to add and retrieve runtime and persistent meta

Diagram

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

Members

Methods

Public methods

Returns Name
Task AddPersistentMeta(...)
void AddRuntimeMeta(MetaType metaKey, Func<T, Task<IEnumerable<V>>> metaAction)
Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId)
Task<EFMeta> GetPersistentMeta(...)
Task<IEnumerable<IClientMeta>> GetRuntimeMeta(...)
Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId)
Task RemovePersistentMeta(...)
Task SetPersistentMeta(string metaKey, string metaValue, int clientId)

Internal Static methods

Returns Name
int [`g__indexOfSmallestColumn

Details

Summary

implementation of IMetaService used to add and retrieve runtime and persistent meta

Inheritance

Constructors

MetaService

Source code

public MetaService(ILogger<MetaService> logger, IDatabaseContextFactory contextFactory)
Arguments
Type Name Description
ILogger<MetaService> logger
IDatabaseContextFactory contextFactory

Methods

AddPersistentMeta [1/2]

Source code

public virtual async Task AddPersistentMeta(string metaKey, string metaValue, EFClient client, EFMeta linkedMeta)
Arguments
Type Name Description
string metaKey
string metaValue
EFClient client
EFMeta linkedMeta

SetPersistentMeta

Source code

public virtual async Task SetPersistentMeta(string metaKey, string metaValue, int clientId)
Arguments
Type Name Description
string metaKey
string metaValue
int clientId

IncrementPersistentMeta

Source code

public virtual async Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId)
Arguments
Type Name Description
string metaKey
int incrementAmount
int clientId

DecrementPersistentMeta

Source code

public virtual async Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId)
Arguments
Type Name Description
string metaKey
int decrementAmount
int clientId

AddPersistentMeta [2/2]

Source code

public virtual async Task AddPersistentMeta(string metaKey, string metaValue)
Arguments
Type Name Description
string metaKey
string metaValue

RemovePersistentMeta [1/2]

Source code

public virtual async Task RemovePersistentMeta(string metaKey, EFClient client)
Arguments
Type Name Description
string metaKey
EFClient client

RemovePersistentMeta [2/2]

Source code

public virtual async Task RemovePersistentMeta(string metaKey, string metaValue)
Arguments
Type Name Description
string metaKey
string metaValue

GetPersistentMeta [1/2]

Source code

public virtual async Task<EFMeta> GetPersistentMeta(string metaKey, EFClient client)
Arguments
Type Name Description
string metaKey
EFClient client

GetPersistentMeta [2/2]

Source code

public virtual async Task<IEnumerable<EFMeta>> GetPersistentMeta(string metaKey)
Arguments
Type Name Description
string metaKey

AddRuntimeMeta

Source code

public virtual void AddRuntimeMeta<T, V>(MetaType metaKey, Func<T, Task<IEnumerable<V>>> metaAction)
where T : PaginationRequest
where V : IClientMeta
Arguments
Type Name Description
MetaType metaKey
Func<T, Task<IEnumerable<V>>> metaAction

GetRuntimeMeta [1/2]

Source code

public virtual async Task<IEnumerable<IClientMeta>> GetRuntimeMeta(ClientPaginationRequest request)
Arguments
Type Name Description
ClientPaginationRequest request

GetRuntimeMeta [2/2]

Source code

public virtual async Task<IEnumerable<T>> GetRuntimeMeta<T>(ClientPaginationRequest request, MetaType metaType)
where T : IClientMeta
Arguments
Type Name Description
ClientPaginationRequest request
MetaType metaType

g__indexOfSmallestColumn|16_2

Source code

internal static int <ProcessInformationMeta>g__indexOfSmallestColumn|16_2<T>()
where T : IClientMeta

Generated with ModularDoc