I have a simple message sender in C#
public static async Task SendMessageToTopic(string serviceBusConnectionString, string topic, string message)
{
const int numberOfMessages = 10;
topicClient = new TopicClient(serviceBusConnectionString, topic);
Console.WriteLine("======================================================");
Console.WriteLine("Press ENTER key to exit after sending all the messages.");
Console.WriteLine("======================================================");
// Send messages.
await SendMessagesAsync(message);
}
static async Task SendMessagesAsync(string message)
{
try
{
var encodedMessage = new Message(Encoding.UTF8.GetBytes(message));
// Write the body of the message to the console.
Console.WriteLine($"Sending message: {encodedMessage}");
// Send the message to the topic.
await topicClient.SendAsync(encodedMessage);
}
catch (Exception exception)
{
Console.WriteLine($"{DateTime.Now} :: Exception: {exception.Message}");
}
}
In the other end I have a simple receiver application and everything works well. Now I want to store my messages (which are, say, integers) into Azure storage to plot them later. I set up endpoints and routes as described here https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-store-data-in-azure-table-storage#verify-your-message-in-your-storage-container But it looks like my container is empty (I use Azure Storage Explorer to see it)