コード例 #1
0
        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));
        }
コード例 #2
0
        /// <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);
        }