This DI, Dependency Injection, example has an async Main for a .NET program. Link
async
class Program { static Task Main(string[] args) => C