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