public override bool RetainAll <TE>(ICollection <TE> c) { var valueSet = ToDataList(c); var request = ListCompareAndRetainAllCodec.EncodeRequest(GetName(), valueSet); return(Invoke(request, m => ListCompareAndRetainAllCodec.DecodeResponse(m).response)); }
/// <inheritdoc /> public override async Task <bool> RetainAllAsync <TItem>(ICollection <TItem> items) { var itemsData = ToSafeData(items); var requestMessage = ListCompareAndRetainAllCodec.EncodeRequest(Name, itemsData); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait(); return(ListCompareAndRetainAllCodec.DecodeResponse(responseMessage).Response); }