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