public bool ContainsAll <TE>(ICollection <TE> c)
        {
            var dataSet = ToDataList(c);
            var request = QueueContainsAllCodec.EncodeRequest(GetName(), dataSet);

            return(Invoke(request, m => QueueContainsAllCodec.DecodeResponse(m).response));
        }
示例#2
0
        /// <inheritdoc />
        public override async Task <bool> ContainsAllAsync <TItem>(ICollection <TItem> items)
        {
            var itemsData       = ToSafeData(items);
            var requestMessage  = QueueContainsAllCodec.EncodeRequest(Name, itemsData);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

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