public virtual ICollection <V> Get(K key) { var keyData = ToData(key); var request = TransactionalMultiMapGetCodec.EncodeRequest(GetName(), GetTransactionId(), GetThreadId(), keyData); var list = Invoke(request, m => TransactionalMultiMapGetCodec.DecodeResponse(m).list); return(ToList <V>(list)); }
public async Task <IReadOnlyList <TValue> > GetAsync(TKey key) { var keyData = ToSafeData(key); var requestMessage = TransactionalMultiMapGetCodec.EncodeRequest(Name, TransactionId, ContextId, keyData); var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CAF(); var response = TransactionalMultiMapGetCodec.DecodeResponse(responseMessage).Response; return(new ReadOnlyLazyList <TValue>(response, SerializationService)); }