/// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="config">Конфигурация.</param>
        /// <param name="externals">Внешнее.</param>
        public ModIdentityServerWebMvcContext(ModIdentityServerWebMvcConfig config, ModIdentityServerWebMvcExternals externals)
        {
            Config = config;

            PartAccount = new ModIdentityServerWebMvcPartAccountContext(
                Config.Settings.PartAccount,
                externals.PartAccount
                );

            PartExternal = new ModIdentityServerWebMvcPartExternalContext(
                Config.Settings.PartAccount,
                externals.PartExternal
                );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Инициализировать конфигурацию.
 /// </summary>
 /// <param name="environment">Окружение.</param>
 public void InitConfig(CoreBaseEnvironment environment)
 {
     Config = new ModIdentityServerWebMvcConfig(environment);
 }