public ApplicationInstance()
 {
     _siteConfig = new ObservableCollection<ConfigOverride>();
     _workerConfig = new ObservableCollection<ConfigOverride>();
     _ehrSftpSettings = new SftpSettings();
     _ediSftpSettings = new SftpSettings();
 }
        private void AddSftpConfig(string useSftpKey, string sftpAddressKey, string portKey, string userKey, string pwdKey, SftpSettings sttings)
        {
            var useSftp = sttings.UseSftp.ToString().ToLower();

            AddPredefinedConfig($"/configuration/appSettings/add[@key='{useSftpKey}']", "value", useSftp);
            AddPredefinedConfig($"/configuration/appSettings/add[@key='{sftpAddressKey}']", "value", sttings.Address);
            AddPredefinedConfig($"/configuration/appSettings/add[@key='{portKey}']", "value", sttings.Port);
            AddPredefinedConfig($"/configuration/appSettings/add[@key='{userKey}']", "value", sttings.User);
            AddPredefinedConfig($"/configuration/appSettings/add[@key='{pwdKey}']", "value", sttings.Password);
        }