示例#1
0
        /// <inheritdoc />
        public override async Task <IReadOnlyList <T> > GetAllAsync()
        {
            var requestMessage  = QueueIteratorCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

            var response = QueueIteratorCodec.DecodeResponse(responseMessage).Response;

            return(new ReadOnlyLazyList <T>(response, SerializationService));
        }
        private ICollection <IData> GetAll()
        {
            var request = QueueIteratorCodec.EncodeRequest(GetName());

            return(Invoke(request, m => QueueIteratorCodec.DecodeResponse(m).response));
        }