Пример #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);
        }
Пример #2
0
 /// <summary>
 /// Инициализировать контекст.
 /// </summary>
 /// <param name="externals">Внешнее.</param>
 public void InitContext(HostBaseExternals externals)
 {
     Context = new HostBaseContext(Config, externals);
 }