Example #1
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="сonfig">Конфигурация.</param>
        /// <param name="externals">Внешнее.</param>
        public HostBaseContext(HostBaseConfig сonfig, HostBaseExternals externals)
        {
            Config = сonfig;

            PartAuth = new HostBasePartAuthContext(сonfig.Settings.PartAuth, externals.PartAuth);
            PartLdap = new HostBasePartLdapContext(сonfig.Settings.PartLdap, externals.PartLdap);
        }
Example #2
0
 /// <summary>
 /// Инициализировать конфигурацию.
 /// </summary>
 /// <param name="environment">Окружение.</param>
 public void InitConfig(CoreBaseEnvironment environment)
 {
     Config = new HostBaseConfig(environment);
 }