public bool Contains(object o)
        {
            var value   = ToData(o);
            var request = QueueContainsCodec.EncodeRequest(GetName(), value);

            return(Invoke(request, m => QueueContainsCodec.DecodeResponse(m).response));
        }
Пример #2
0
        /// <inheritdoc />
        public override async Task <bool> ContainsAsync(T item)
        {
            var itemData        = ToSafeData(item);
            var requestMessage  = QueueContainsCodec.EncodeRequest(Name, itemData);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

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