public ISet <TKey> KeySet() { var request = ReplicatedMapKeySetCodec.EncodeRequest(GetName()); var result = InvokeOnPartition(request, _targetPartitionId, m => ReplicatedMapKeySetCodec.DecodeResponse(m).response); return(new ReadOnlyLazySet <TKey>(result, GetContext().GetSerializationService())); }
public async Task <IReadOnlyCollection <TValue> > GetValuesAsync() { var requestMessage = ReplicatedMapValuesCodec.EncodeRequest(Name); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, _partitionId).CfAwait(); var response = ReplicatedMapKeySetCodec.DecodeResponse(responseMessage).Response; return(new ReadOnlyLazyList <TValue>(response, SerializationService)); }