I'm using this MessageReceiver.ReceiveBatchAsync Method to receive a batch of messages from a service bus queue.
BrokeredMessage has a SequenceNumber, but sometimes the numbers are not continuous. Does that mean some messages lost.
How can I make this continuous?
The message sequence is set on the broker whenever the broker receives messages. So if you have scheduled messages and it's not the time yet, you'll have a gap between message sequence numbers. Messages are not lost once received by the broker. You shouldn't use sequence numbers as indicators.