HostBuilderContext.Configuration["Key"] · hardcoding keys;context.Configuration.Get<Configuration>() · calling the same method everywhere;context.Configuration.Bind(configuration) · confusing where to bind it at the first time;IHostBuilder.ConfigureAppConfiguration:content.Configuration so that its type matches Configuration (my custom class), in order to directly get values without hardcoding, for example: context.Configuration.Token. But I understand that this may not be possible.