Example #1
0
        public ICollection <TValue> Values()
        {
            var request = ReplicatedMapValuesCodec.EncodeRequest(GetName());
            var list    = InvokeOnPartition(request, _targetPartitionId, m => ReplicatedMapValuesCodec.DecodeResponse(m).response);

            return(new ReadOnlyLazyList <TValue, IData>(list, GetContext().GetSerializationService()));
        }
Example #2
0
        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));
        }