public override void Dispose() { var botSettingsString = JsonConvert.SerializeObject(ChatSettings); AzureStorageAdapter.SaveBlobToSettings("chatsettings.json", botSettingsString); base.Dispose(); }
private static void LoadChatSettings() { var settingsString = AzureStorageAdapter.ReadBlobFromSettings("chatsettings.json"); _chatSettings = JsonConvert.DeserializeObject <ChatSettings>(settingsString); if (_chatSettings == null) { _chatSettings = new ChatSettings(); } }