-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationmisc MetaService
RaidMax edited this page May 21, 2023
·
1 revision
implementation of IMetaService used to add and retrieve runtime and persistent meta
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
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) |
Returns | Name |
---|---|
int |
[`g__indexOfSmallestColumn |
implementation of IMetaService used to add and retrieve runtime and persistent meta
public MetaService(ILogger<MetaService> logger, IDatabaseContextFactory contextFactory)
Type | Name | Description |
---|---|---|
ILogger <MetaService > |
logger | |
IDatabaseContextFactory |
contextFactory |
public virtual async Task AddPersistentMeta(string metaKey, string metaValue, EFClient client, EFMeta linkedMeta)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
metaValue | |
EFClient |
client | |
EFMeta |
linkedMeta |
public virtual async Task SetPersistentMeta(string metaKey, string metaValue, int clientId)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
metaValue | |
int |
clientId |
public virtual async Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
incrementAmount | |
int |
clientId |
public virtual async Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
decrementAmount | |
int |
clientId |
public virtual async Task AddPersistentMeta(string metaKey, string metaValue)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
metaValue |
public virtual async Task RemovePersistentMeta(string metaKey, EFClient client)
Type | Name | Description |
---|---|---|
string |
metaKey | |
EFClient |
client |
public virtual async Task RemovePersistentMeta(string metaKey, string metaValue)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
metaValue |
public virtual async Task<EFMeta> GetPersistentMeta(string metaKey, EFClient client)
Type | Name | Description |
---|---|---|
string |
metaKey | |
EFClient |
client |
public virtual async Task<IEnumerable<EFMeta>> GetPersistentMeta(string metaKey)
Type | Name | Description |
---|---|---|
string |
metaKey |
public virtual void AddRuntimeMeta<T, V>(MetaType metaKey, Func<T, Task<IEnumerable<V>>> metaAction)
where T : PaginationRequest
where V : IClientMeta
Type | Name | Description |
---|---|---|
MetaType |
metaKey | |
Func <T , Task <IEnumerable <V >>> |
metaAction |
public virtual async Task<IEnumerable<IClientMeta>> GetRuntimeMeta(ClientPaginationRequest request)
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request |
public virtual async Task<IEnumerable<T>> GetRuntimeMeta<T>(ClientPaginationRequest request, MetaType metaType)
where T : IClientMeta
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request | |
MetaType |
metaType |
internal static int <ProcessInformationMeta>g__indexOfSmallestColumn|16_2<T>()
where T : IClientMeta
Generated with ModularDoc