コード例 #1
0
        public T Get(int index)
        {
            var request  = ListGetCodec.EncodeRequest(GetName(), index);
            var response = Invoke(request);

            return(ToObject <T>(ListGetCodec.DecodeResponse(response).response));
        }
コード例 #2
0
        /// <inheritdoc />
        public async Task <T> GetAsync(int index)
        {
            var requestMessage  = ListGetCodec.EncodeRequest(Name, index);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CAF();

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

            return(ToObject <T>(response));
        }