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); }
/// <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); }