-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationmisc MetaServiceV2
RaidMax edited this page May 21, 2023
·
1 revision
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
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 (... ) |
public MetaServiceV2(ILogger<MetaServiceV2> logger, IDatabaseContextFactory contextFactory, IServiceProvider serviceProvider)
Type | Name | Description |
---|---|---|
ILogger <MetaServiceV2 > |
logger | |
IDatabaseContextFactory |
contextFactory | |
IServiceProvider |
serviceProvider |
public virtual async Task SetPersistentMeta(string metaKey, string metaValue, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
metaValue | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task SetPersistentMetaValue<T>(string metaKey, T metaValue, int clientId, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
T |
metaValue | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task SetPersistentMetaForLookupKey(string metaKey, string lookupKey, int lookupId, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
lookupKey | |
int |
lookupId | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
incrementAmount | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
decrementAmount | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task<EFMeta> GetPersistentMeta(string metaKey, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task<T> GetPersistentMetaValue<T>(string metaKey, int clientId, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task<EFMeta> GetPersistentMetaByLookup(string metaKey, string lookupKey, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
lookupKey | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task RemovePersistentMeta(string metaKey, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
clientId | |
CancellationToken |
token |
public virtual async Task SetPersistentMeta(string metaKey, string metaValue, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
metaValue | |
CancellationToken |
token |
public virtual async Task SetPersistentMetaValue<T>(string metaKey, T metaValue, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
T |
metaValue | |
CancellationToken |
token |
public virtual async Task<EFMeta> GetPersistentMeta(string metaKey, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
CancellationToken |
token |
public virtual async Task<T> GetPersistentMetaValue<T>(string metaKey, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
CancellationToken |
token |
public virtual async Task RemovePersistentMeta(string metaKey, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
CancellationToken |
token |
public virtual void AddRuntimeMeta<T, TReturnType>(MetaType metaKey, Func<T, CancellationToken, Task<IEnumerable<TReturnType>>> metaAction)
where T : PaginationRequest
where TReturnType : IClientMeta
Type | Name | Description |
---|---|---|
MetaType |
metaKey | |
Func <T , CancellationToken , Task <IEnumerable <TReturnType >>> |
metaAction |
public virtual async Task<IEnumerable<IClientMeta>> GetRuntimeMeta(ClientPaginationRequest request, CancellationToken token)
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request | |
CancellationToken |
token |
public virtual async Task<IEnumerable<T>> GetRuntimeMeta<T>(ClientPaginationRequest request, MetaType metaType, CancellationToken token)
where T : IClientMeta
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request | |
MetaType |
metaType | |
CancellationToken |
token |
Generated with ModularDoc