// <inheritdoc /> public override async Task ClearAsync() { var requestMessage = QueueClearCodec.EncodeRequest(Name); var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CAF(); _ = QueueClearCodec.DecodeResponse(responseMessage); }
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); }