Skip to content

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

@ValDekh

Description

@ValDekh
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions