-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces IMetaService
RaidMax edited this page May 21, 2023
·
1 revision
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IMetaService[[IMetaService]]
class SharedLibraryCore.Interfaces.IMetaService interfaceStyle;
end
Returns | Name |
---|---|
Task |
AddPersistentMeta (... )adds or updates meta key and value to the database |
void |
AddRuntimeMeta (MetaType metaKey, Func <T , Task <IEnumerable <V >>> metaAction) |
Task |
DecrementPersistentMeta (string metaKey, int decrementAmount, int clientId)decrements meta value and persists to the database if the meta value does not already exist it will be set to the decrement amount |
Task <EFMeta > |
GetPersistentMeta (... )retrieves meta data for given client and key |
Task <IEnumerable <IClientMeta >> |
GetRuntimeMeta (... )retrieves all the runtime meta information for given client idea |
Task |
IncrementPersistentMeta (string metaKey, int incrementAmount, int clientId)increments meta value and persists to the database if the meta value does not already exist it will be set to the increment amount |
Task |
RemovePersistentMeta (... )removes meta key with given value |
Task |
SetPersistentMeta (string metaKey, string metaValue, int clientId)adds or updates meta key and value to the database |
public Task AddPersistentMeta(string metaKey, string metaValue, EFClient client, EFMeta linkedMeta)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
string |
metaValue | value of the meta data |
EFClient |
client | client to save the meta for |
EFMeta |
linkedMeta |
adds or updates meta key and value to the database
public Task SetPersistentMeta(string metaKey, string metaValue, int clientId)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
string |
metaValue | value of the meta data |
int |
clientId | id of the client to save the meta for |
adds or updates meta key and value to the database
public Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
int |
incrementAmount | value to increment by |
int |
clientId | id of the client to save the meta for |
increments meta value and persists to the database if the meta value does not already exist it will be set to the increment amount
public Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
int |
decrementAmount | value to increment by |
int |
clientId | id of the client to save the meta for |
decrements meta value and persists to the database if the meta value does not already exist it will be set to the decrement amount
public Task AddPersistentMeta(string metaKey, string metaValue)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
string |
metaValue | value of the meta data |
adds or updates meta key and value to the database
public Task RemovePersistentMeta(string metaKey, EFClient client)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
EFClient |
client | client to delete the meta for |
removes meta key with given value
public Task RemovePersistentMeta(string metaKey, string metaValue)
Type | Name | Description |
---|---|---|
string |
metaKey | key of the meta data |
string |
metaValue | value of the meta data |
removes meta key with given value
public Task<EFMeta> GetPersistentMeta(string metaKey, EFClient client)
Type | Name | Description |
---|---|---|
string |
metaKey | key to retrieve value for |
EFClient |
client | client to retrieve meta for |
retrieves meta data for given client and key
public Task<IEnumerable<EFMeta>> GetPersistentMeta(string metaKey)
Type | Name | Description |
---|---|---|
string |
metaKey | key to retrieve values for |
retrieves collection of meta for given key
public 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 Task<IEnumerable<IClientMeta>> GetRuntimeMeta(ClientPaginationRequest request)
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request | request information |
retrieves all the runtime meta information for given client idea
public Task<IEnumerable<T>> GetRuntimeMeta<T>(ClientPaginationRequest request, MetaType metaType)
where T : IClientMeta
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request | |
MetaType |
metaType |
Generated with ModularDoc