in dotnet-core/AWS.IoT.FleetProvisioning/Program.cs [17:41]
public static async Task Main(string[] args)
{
try
{
var serviceProvider = CreateHostBuilder(args).Build().Services;
await serviceProvider
.GetService<ConsoleApplication>()
.GetPermanentCertificatesAsync();
}
catch (DirectoryNotFoundException)
{
Console.WriteLine("### Bootstrap cert non-existent. Official cert may already be in place. ###");
}
catch (Exception e)
{
Console.WriteLine(e);
Console.ReadKey(true);
}
finally
{
Console.WriteLine();
Console.WriteLine("Program completed... Press Ctrl+C to exit.");
}
}