public bool AddAll <TE>(int index, ICollection <TE> c) where TE : T
        {
            var valueList = ToDataList(c);
            var request   = ListAddAllWithIndexCodec.EncodeRequest(GetName(), index, valueList);
            var response  = Invoke(request);

            return(ListAddAllWithIndexCodec.DecodeResponse(response).response);
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public async Task <bool> AddAllAsync <TItem>(int index, ICollection <TItem> items)
            where TItem : T
        {
            var itemsData       = ToSafeData(items);
            var requestMessage  = ListAddAllWithIndexCodec.EncodeRequest(Name, index, itemsData);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

            return(ListAddAllWithIndexCodec.DecodeResponse(responseMessage).Response);
        }