コード例 #1
0
        public T Remove(int index)
        {
            var request = ListRemoveWithIndexCodec.EncodeRequest(GetName(), index);
            var result  = Invoke(request, m => ListRemoveWithIndexCodec.DecodeResponse(m).response);

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

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

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