Skip to content

iw4madminapplicationmisc MetaServiceV2

RaidMax edited this page May 21, 2023 · 1 revision

MetaServiceV2 Public class

Diagram

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

Members

Methods

Public methods

Returns Name
void AddRuntimeMeta(MetaType metaKey, Func<T, CancellationToken, Task<IEnumerable<TReturnType>>> metaAction)
Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId, CancellationToken token)
Task<EFMeta> GetPersistentMeta(...)
Task<EFMeta> GetPersistentMetaByLookup(string metaKey, string lookupKey, int clientId, CancellationToken token)
Task<T> GetPersistentMetaValue(...)
Task<IEnumerable<IClientMeta>> GetRuntimeMeta(...)
Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId, CancellationToken token)
Task RemovePersistentMeta(...)
Task SetPersistentMeta(...)
Task SetPersistentMetaForLookupKey(string metaKey, string lookupKey, int lookupId, int clientId, CancellationToken token)
Task SetPersistentMetaValue(...)

Details

Inheritance

Constructors

MetaServiceV2

Source code

public MetaServiceV2(ILogger<MetaServiceV2> logger, IDatabaseContextFactory contextFactory, IServiceProvider serviceProvider)
Arguments
Type Name Description
ILogger<MetaServiceV2> logger
IDatabaseContextFactory contextFactory
IServiceProvider serviceProvider

Methods

SetPersistentMeta [1/2]

Source code

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

SetPersistentMetaValue [1/2]

Source code

public virtual async Task SetPersistentMetaValue<T>(string metaKey, T metaValue, int clientId, CancellationToken token)
where T : 
Arguments
Type Name Description
string metaKey
T metaValue
int clientId
CancellationToken token

SetPersistentMetaForLookupKey

Source code

public virtual async Task SetPersistentMetaForLookupKey(string metaKey, string lookupKey, int lookupId, int clientId, CancellationToken token)
Arguments
Type Name Description
string metaKey
string lookupKey
int lookupId
int clientId
CancellationToken token

IncrementPersistentMeta

Source code

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

DecrementPersistentMeta

Source code

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

GetPersistentMeta [1/2]

public virtual async Task<EFMeta> GetPersistentMeta(string metaKey, int clientId, CancellationToken token)
Arguments
Type Name Description
string metaKey
int clientId
CancellationToken token

GetPersistentMetaValue [1/2]

Source code

public virtual async Task<T> GetPersistentMetaValue<T>(string metaKey, int clientId, CancellationToken token)
where T : 
Arguments
Type Name Description
string metaKey
int clientId
CancellationToken token

GetPersistentMetaByLookup

Source code

public virtual async Task<EFMeta> GetPersistentMetaByLookup(string metaKey, string lookupKey, int clientId, CancellationToken token)
Arguments
Type Name Description
string metaKey
string lookupKey
int clientId
CancellationToken token

RemovePersistentMeta [1/2]

Source code

public virtual async Task RemovePersistentMeta(string metaKey, int clientId, CancellationToken token)
Arguments
Type Name Description
string metaKey
int clientId
CancellationToken token

SetPersistentMeta [2/2]

Source code

public virtual async Task SetPersistentMeta(string metaKey, string metaValue, CancellationToken token)
Arguments
Type Name Description
string metaKey
string metaValue
CancellationToken token

SetPersistentMetaValue [2/2]

Source code

public virtual async Task SetPersistentMetaValue<T>(string metaKey, T metaValue, CancellationToken token)
where T : 
Arguments
Type Name Description
string metaKey
T metaValue
CancellationToken token

GetPersistentMeta [2/2]

Source code

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

GetPersistentMetaValue [2/2]

Source code

public virtual async Task<T> GetPersistentMetaValue<T>(string metaKey, CancellationToken token)
where T : 
Arguments
Type Name Description
string metaKey
CancellationToken token

RemovePersistentMeta [2/2]

Source code

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

AddRuntimeMeta

Source code

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

GetRuntimeMeta [1/2]

Source code

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

GetRuntimeMeta [2/2]

Source code

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

Generated with ModularDoc

Clone this wiki locally