Example #1
0
        /*
         * Public method which can be invoked through the singleton instance to set new value to config property
         */

        public void UpdateSetting()
        {
            this._appConfig = new ApplicationConfigurationModel
            {
                PrinterSettingDirectory = AppSettingHelper.GetAppSettings <string>("PrinterSettingDirectory"),
                InstallerLocation       = AppSettingHelper.GetAppSettings <string>("InstallerLocation"),
                InstallationLocation    = AppSettingHelper.GetAppSettings <string>("InstallationLocation"),
                ServiceDisplayName      = AppSettingHelper.GetAppSettings <string>("ServiceDisplayName"),
                ServiceName             = AppSettingHelper.GetAppSettings <string>("ServiceName")
            };
        }