I have made a simple Hazelcast topic publisher in C#.
My code is working on Linux, but not on Windows. Can you help me to understand why?
The code only executes to the line "code stops executing here".
public static async Task SubscribePublishToTopic(String topicSubscribe, String message)
{
await using var client = await HazelcastClientFactory.StartNewClientAsync();
Console.WriteLine("client added");
await using var topic = await client.GetTopicAsync<String>(topicSubscribe);
await topic.PublishAsync(message);
}
public static async Task Main(string[] args)
{
Console.WriteLine("We are here");
await SubscribePublishToTopic("Test-Topic", "Hello World");
Console.WriteLine("Subscriber added to Test-Topic");
}