Root Question Message
public asyncand see if it works then
Task task = StreamSample.StreamSampleMain()and
Task task = new Task(StreamSample.StreamSampleMain)?
new Taskyou have to remember to start the task yourself. Look at https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/task-based-asynchronous-programming#creating-and-running-tasks-explicitly for more info
await taskeither way?
Task task = new Task(...); task.Start(); await task();
Task task = AsyncStuff(); await task();