You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Створити клас Startup, тут інструкція https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection. З його допомогою вдасться позбутись статичного CosmosDBSetter (dependency injection) а також замість 48: Environment.GetEnvironmentVariable("token", EnvironmentVariableTarget.Process); отриимуватии данні із IConfiguration. Тобто потрібно буде створити appsettings.json і туди закинути конекшт сттроку для бази данниих а також токен для бота. По сиилці є інфа(https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection#customizing-configuration-sources) #1