Ejemplo n.º 1
0
        public async Task <bool> IsEmptyAsync()
        {
            var requestMessage  = ReplicatedMapIsEmptyCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, _partitionId).CfAwait();

            return(ReplicatedMapIsEmptyCodec.DecodeResponse(responseMessage).Response);
        }
Ejemplo n.º 2
0
        public bool IsEmpty()
        {
            var request = ReplicatedMapIsEmptyCodec.EncodeRequest(GetName());

            return(InvokeOnPartition(request, _targetPartitionId, m => ReplicatedMapIsEmptyCodec.DecodeResponse(m).response));
        }