public bool ContainsValue(object value) { var valueData = ToData(value); var request = ReplicatedMapContainsValueCodec.EncodeRequest(GetName(), valueData); return(InvokeOnPartition(request, _targetPartitionId, m => ReplicatedMapContainsValueCodec.DecodeResponse(m).response)); }
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); }