/// <inheritdoc /> public override async Task <bool> IsEmptyAsync() { var requestMessage = QueueIsEmptyCodec.EncodeRequest(Name); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait(); return(QueueIsEmptyCodec.DecodeResponse(responseMessage).Response); }
public bool IsEmpty() { var request = QueueIsEmptyCodec.EncodeRequest(GetName()); return(Invoke(request, m => QueueIsEmptyCodec.DecodeResponse(m).response)); }