Udostępnij przez


MemoryStorage.ReadAsync(String[], CancellationToken) Metoda

Definicja

Odczytuje elementy magazynu z magazynu.

public System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string,object>> ReadAsync(string[] keys, System.Threading.CancellationToken cancellationToken);
abstract member ReadAsync : string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, obj>>
override this.ReadAsync : string[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, obj>>
Public Function ReadAsync (keys As String(), cancellationToken As CancellationToken) As Task(Of IDictionary(Of String, Object))

Parametry

keys
String[]

IStoreItem klucze obiektów do odczytania.

cancellationToken
CancellationToken

Token odwołania, używany przez inne obiekty lub wątki do otrzymania powiadomienia o anulowaniu.

Zwraca

Zadanie reprezentujące pracę w kolejce do wykonania.

Implementuje

Uwagi

Jeśli działania zostaną pomyślnie wysłane, wynik zadania zawiera elementy odczytane, indeksowane według klucza.

Dotyczy

Zobacz też