// <inheritdoc />
        public override async Task ClearAsync()
        {
            var requestMessage  = QueueClearCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CAF();

            _ = QueueClearCodec.DecodeResponse(responseMessage);
        }
Exemple #2
0
        Task ClearAsync()
        {
            var requestMessage = QueueClearCodec.EncodeRequest(Name);
            var task           = Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId);

#if HZ_OPTIMIZE_ASYNC
            return(task);
#else
            await task.CfAwait();
#endif
        }
        public void Clear()
        {
            var request = QueueClearCodec.EncodeRequest(GetName());

            Invoke(request);
        }