Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Azure EventHub - How to remove the event?

$
0
0

Like allways, I would appreciate your help, as I am currently stuck!!!

We have a new project and we will be using the Azure EventHub. I have created demo app, where we can add events to the Event Hub and also where we can consume them using IEventProcessor(Receiver project). The questions is that every time, I execute the receiver project, I see the same events. Shouldn't we expect that those events will be deleted-removed after we consume them?

Example in the Receiver project:

foreach(EventData eventData in messages){string data =Encoding.UTF8.GetString(eventData.GetBytes());Console.WriteLine(string.Format("Message received.  Partition: '{0}', Data: '{1}'",
                context.Lease.PartitionId, data));}

Is there a way to delete/remove the event after the Console.WriteLine or will the message be retained for a day? With the Queues , you can signal the completion , but with the EventHub is don't see any command, I can use to delete/remove it.

Any reply would be greatly appreciated. We have been instructed to use EventHub but a-b reasons, its not a matter of choice.


Viewing all articles
Browse latest Browse all 1916

Trending Articles