-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreinterfaces IMetaServiceV2
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IMetaServiceV2[[IMetaServiceV2]]
class SharedLibraryCore.Interfaces.IMetaServiceV2 interfaceStyle;
end
Returns | Name |
---|---|
void |
AddRuntimeMeta (MetaType metaKey, Func <T , CancellationToken , Task <IEnumerable <TReturn >>> metaAction) |
Task |
DecrementPersistentMeta (string metaKey, int decrementAmount, int clientId, CancellationToken token)decrements meta value and persists to the database if the meta value does not already exist it will be set to the decrement amount the assumption is made that the existing value is Int32 |
Task <EFMeta > |
GetPersistentMeta (... )retrieves meta entry |
Task <EFMeta > |
GetPersistentMetaByLookup (string metaKey, string lookupKey, int clientId, CancellationToken token)retrieves meta entry by with associated lookup value as string |
Task <T > |
GetPersistentMetaValue (... ) |
Task <IEnumerable <IClientMeta >> |
GetRuntimeMeta (... )retrieves all the runtime meta information for given client idea |
Task |
IncrementPersistentMeta (string metaKey, int incrementAmount, int clientId, CancellationToken token)increments meta value and persists to the database if the meta value does not already exist it will be set to the increment amount the assumption is made that the existing value is Int32 |
Task |
RemovePersistentMeta (... )removes meta key with given value |
Task |
SetPersistentMeta (... )adds or updates meta key and value to the database as simple string |
Task |
SetPersistentMetaForLookupKey (string metaKey, string lookupKey, int lookupId, int clientId, CancellationToken token)Sets meta key to a linked lookup key and id |
Task |
SetPersistentMetaValue (... ) |
public Task SetPersistentMeta(string metaKey, string metaValue, int clientId, CancellationToken token)
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 |
CancellationToken |
token |
adds or updates meta key and value to the database as simple string
public 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 Task SetPersistentMetaForLookupKey(string metaKey, string lookupKey, int lookupId, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | Key for the client meta |
string |
lookupKey | Key of the global lookup meta |
int |
lookupId | Id in the list of lookup values |
int |
clientId | id of the client |
CancellationToken |
token |
Sets meta key to a linked lookup key and id
public Task IncrementPersistentMeta(string metaKey, int incrementAmount, int clientId, CancellationToken token)
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 |
CancellationToken |
token |
increments meta value and persists to the database if the meta value does not already exist it will be set to the increment amount the assumption is made that the existing value is Int32
public Task DecrementPersistentMeta(string metaKey, int decrementAmount, int clientId, CancellationToken token)
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 |
CancellationToken |
token |
decrements meta value and persists to the database if the meta value does not already exist it will be set to the decrement amount the assumption is made that the existing value is Int32
public Task<EFMeta> GetPersistentMeta(string metaKey, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
clientId | |
CancellationToken |
token |
retrieves meta entry
public Task<T> GetPersistentMetaValue<T>(string metaKey, int clientId, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
int |
clientId | |
CancellationToken |
token |
public Task<EFMeta> GetPersistentMetaByLookup(string metaKey, string lookupKey, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | |
string |
lookupKey | |
int |
clientId | |
CancellationToken |
token |
retrieves meta entry by with associated lookup value as string
public Task RemovePersistentMeta(string metaKey, int clientId, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
int |
clientId | client to delete the meta for |
CancellationToken |
token |
removes meta key with given value
public Task SetPersistentMeta(string metaKey, string metaValue, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | key of meta data |
string |
metaValue | value of the meta data |
CancellationToken |
token |
adds or updates meta key and value to the database
public Task SetPersistentMetaValue<T>(string metaKey, T metaValue, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
T |
metaValue | |
CancellationToken |
token |
public Task RemovePersistentMeta(string metaKey, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | key of the meta data |
CancellationToken |
token |
removes meta key with given value
public Task<EFMeta> GetPersistentMeta(string metaKey, CancellationToken token)
Type | Name | Description |
---|---|---|
string |
metaKey | key to retrieve values for |
CancellationToken |
token |
retrieves collection of meta for given key
public Task<T> GetPersistentMetaValue<T>(string metaKey, CancellationToken token)
where T :
Type | Name | Description |
---|---|---|
string |
metaKey | |
CancellationToken |
token |
public void AddRuntimeMeta<T, TReturn>(MetaType metaKey, Func<T, CancellationToken, Task<IEnumerable<TReturn>>> metaAction)
where T : PaginationRequest
where TReturn : IClientMeta
Type | Name | Description |
---|---|---|
MetaType |
metaKey | |
Func <T , CancellationToken , Task <IEnumerable <TReturn >>> |
metaAction |
public Task<IEnumerable<IClientMeta>> GetRuntimeMeta(ClientPaginationRequest request, CancellationToken token)
Type | Name | Description |
---|---|---|
ClientPaginationRequest |
request | request information |
CancellationToken |
token |
retrieves all the runtime meta information for given client idea
public 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