Articles → MICROSOFT BOT FRAMEWORK → Get value of key from appsettings

Get value of key from appsettings






Scenario






Picture showing the appsettings.json file

Click to Enlarge



Picture showing adding the parameterized constructor in the echobot class

Click to Enlarge



Picture showing getting the value of key in OnMembersAddedAsync method

Click to Enlarge


Output


Picture showing the output of getting the value from appsettings.json file

Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Saturday, December 26, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250