예제 #1
0
        public bool ContainsValue(object value)
        {
            var valueData = ToData(value);
            var request   = ReplicatedMapContainsValueCodec.EncodeRequest(GetName(), valueData);

            return(InvokeOnPartition(request, _targetPartitionId, m => ReplicatedMapContainsValueCodec.DecodeResponse(m).response));
        }
예제 #2
0
        public async Task <bool> ContainsValueAsync(TValue value)
        {
            var valueData       = ToSafeData(value);
            var requestMessage  = ReplicatedMapContainsValueCodec.EncodeRequest(Name, valueData);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, _partitionId).CfAwait();

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