/// <summary>
        /// Прочитать параметры
        /// </summary>
        /// <returns>Параметры библиотеки Replication</returns>
        public static ReplicationSettings ReadSettings()
        {
            ReplicationSettings result = new ReplicationSettings();

            try
            {
                var updaterSettings = ConfigurationManager.GetSection("ReplicationService.Setting") as NameValueCollection;
                if (updaterSettings != null)
                {
                    result.ServiceAddress = updaterSettings["ServiceAddress"];
                }
            }
            catch (Exception) { }

            return result;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Прочитать параметры
        /// </summary>
        /// <returns>Параметры библиотеки Replication</returns>
        public static ReplicationSettings ReadSettings()
        {
            ReplicationSettings result = new ReplicationSettings();

            try
            {
                var updaterSettings = ConfigurationManager.GetSection("ReplicationService.Setting") as NameValueCollection;
                if (updaterSettings != null)
                {
                    result.ServiceAddress = updaterSettings["ServiceAddress"];
                }
            }
            catch (Exception) { }

            return(result);
        }