I have the Chatbot, the data for the chatbot is stored in the Azure Cosmos DB. If I change the data in Cosmos DB, I have to restart my web app because the service used for fetching the data from Cosmos is registered in Startup.cs as Singleton.
So my requirement is to update the service properties (data) from Cosmos without restarting the app; also it should not lead to a deadlock.
Can anyone help me with the way to achieve this?