protected override ICollection <T> GetAll()
        {
            var request = SetGetAllCodec.EncodeRequest(GetName());
            var result  = Invoke(request, m => SetGetAllCodec.DecodeResponse(m).response);

            return(ToList <T>(result));
        }
Пример #2
0
        public override async Task <IReadOnlyList <T> > GetAllAsync()
        {
            var requestMessage  = SetGetAllCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

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

            return(new ReadOnlyLazyList <T>(response, SerializationService));
        }