Interface IListProvider

Assembly: redb.Core.dll

Provider for working with dictionaries (Lists) and their items (ListItems).

public interface IListProvider

Properties

LinkedObjectsBatchLoader

Resolves many linked objects in one round-trip on the owning service's connection, for the hand-out preload

Func<IReadOnlyCollection<long>, CancellationToken, Task<IReadOnlyDictionary<long, IRedbObject>>>? LinkedObjectsBatchLoader { get; set; }

Methods

AddItemsAsync(IRedbList, IEnumerable<IRedbListItem>, CancellationToken)

Add multiple items from ready objects.

Task<List<RedbListItem>> AddItemsAsync(IRedbList list, IEnumerable<IRedbListItem> items, CancellationToken cancellationToken = default)

AddItemsAsync(IRedbList, IEnumerable<IRedbListItem>)

Add multiple items from ready objects.

Task<List<RedbListItem>> AddItemsAsync(IRedbList list, IEnumerable<IRedbListItem> items)

AddItemsAsync(IRedbList, IEnumerable<string>, IEnumerable<string>?, CancellationToken)

Add multiple items from string values (convenience method).

Task<List<RedbListItem>> AddItemsAsync(IRedbList list, IEnumerable<string> values, IEnumerable<string>? aliases = null, CancellationToken cancellationToken = default)

AddItemsAsync(IRedbList, IEnumerable<string>, IEnumerable<string>?)

Add multiple items from string values (convenience method).

Task<List<RedbListItem>> AddItemsAsync(IRedbList list, IEnumerable<string> values, IEnumerable<string>? aliases = null)

DeleteListAsync(long, CancellationToken)

Task<bool> DeleteListAsync(long listId, CancellationToken cancellationToken = default)

DeleteListAsync(long)

Task<bool> DeleteListAsync(long listId)

DeleteListItemAsync(long, CancellationToken)

Task<bool> DeleteListItemAsync(long itemId, CancellationToken cancellationToken = default)

DeleteListItemAsync(long)

Task<bool> DeleteListItemAsync(long itemId)

GetAllListsAsync()

Task<List<RedbList>> GetAllListsAsync()

GetAllListsAsync(CancellationToken)

Task<List<RedbList>> GetAllListsAsync(CancellationToken cancellationToken = default)

GetItemsByObjectReferenceAsync(long, CancellationToken)

Task<List<RedbListItem>> GetItemsByObjectReferenceAsync(long objectId, CancellationToken cancellationToken = default)

GetItemsByObjectReferenceAsync(long)

Task<List<RedbListItem>> GetItemsByObjectReferenceAsync(long objectId)

GetListAsync(long, CancellationToken)

Task<RedbList?> GetListAsync(long listId, CancellationToken cancellationToken = default)

GetListAsync(long)

Task<RedbList?> GetListAsync(long listId)

GetListByNameAsync(string, CancellationToken)

Task<RedbList?> GetListByNameAsync(string name, CancellationToken cancellationToken = default)

GetListByNameAsync(string)

Task<RedbList?> GetListByNameAsync(string name)

GetListByNameWithItemsAsync(string, CancellationToken)

Get list by name with all its items loaded.

Task<RedbList?> GetListByNameWithItemsAsync(string name, CancellationToken cancellationToken = default)

GetListByNameWithItemsAsync(string)

Get list by name with all its items loaded.

Task<RedbList?> GetListByNameWithItemsAsync(string name)

GetListItemAsync(long, CancellationToken)

Task<RedbListItem?> GetListItemAsync(long itemId, CancellationToken cancellationToken = default)

GetListItemAsync(long)

Task<RedbListItem?> GetListItemAsync(long itemId)

GetListItemByValueAsync(long, string, CancellationToken)

Task<RedbListItem?> GetListItemByValueAsync(long listId, string value, CancellationToken cancellationToken = default)

GetListItemByValueAsync(long, string)

Task<RedbListItem?> GetListItemByValueAsync(long listId, string value)

GetListItemsAsync(long, CancellationToken)

Task<List<RedbListItem>> GetListItemsAsync(long listId, CancellationToken cancellationToken = default)

GetListItemsAsync(long)

Task<List<RedbListItem>> GetListItemsAsync(long listId)

GetListItemsByIdsAsync(IEnumerable<long>, CancellationToken)

The list items of the given ids, in one query for those the cache does not hold. An id that names no item is

Task<List<RedbListItem>> GetListItemsByIdsAsync(IEnumerable<long> itemIds, CancellationToken cancellationToken = default)

GetListWithItemsAsync(long, CancellationToken)

Get list with all its items loaded.

Task<RedbList?> GetListWithItemsAsync(long listId, CancellationToken cancellationToken = default)

GetListWithItemsAsync(long)

Get list with all its items loaded.

Task<RedbList?> GetListWithItemsAsync(long listId)

IsListUsedInStructuresAsync(long, CancellationToken)

Task<bool> IsListUsedInStructuresAsync(long listId, CancellationToken cancellationToken = default)

IsListUsedInStructuresAsync(long)

Task<bool> IsListUsedInStructuresAsync(long listId)

SaveListAsync(IRedbList, CancellationToken)

Task<RedbList> SaveListAsync(IRedbList list, CancellationToken cancellationToken = default)

SaveListAsync(IRedbList)

Task<RedbList> SaveListAsync(IRedbList list)

SaveListItemAsync(IRedbListItem, CancellationToken)

Task<RedbListItem> SaveListItemAsync(IRedbListItem item, CancellationToken cancellationToken = default)

SaveListItemAsync(IRedbListItem)

Task<RedbListItem> SaveListItemAsync(IRedbListItem item)

SaveListWithItemsAsync(IRedbList, CancellationToken)

Save list with all its items (Aggregate Root).

Task<RedbList> SaveListWithItemsAsync(IRedbList list, CancellationToken cancellationToken = default)

SaveListWithItemsAsync(IRedbList)

Save list with all its items (Aggregate Root).

Task<RedbList> SaveListWithItemsAsync(IRedbList list)

SyncListFromEnumAsync<TEnum>(string?, CancellationToken)

Task<RedbList> SyncListFromEnumAsync<TEnum>(string? listName = null, CancellationToken cancellationToken = default) where TEnum : struct, Enum

SyncListFromEnumAsync<TEnum>(string?)

Task<RedbList> SyncListFromEnumAsync<TEnum>(string? listName = null) where TEnum : struct, Enum