Use the dotnet user-secrets command to keep secrets (API keys, etc.) separate from our program source code. That way, we can access APIs from our program, using a key, and we can prevent those keys from getting propagated to GitHub, where they may be publicly visible.
This video is part of a playlist on consuming and creating RESTful JSON APIs with C# Razor Pages.
Source code is freely available on GitHub at https://github.com/discospiff/PlantDi...
Смотрите видео Keep API key secret from Git/GitHub in Visual Studio 2022 C# Razor Page онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Brandan Jones 15 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,007 раз и оно понравилось 29 людям.