/// <summary> /// Конструктор. /// </summary> /// <param name="coreBaseResourceErrors">Ядро. Основа. Ресурсы. Ошибки.</param> /// <param name="resourceSuccesses">Ресурсы. Успехи.</param> /// <param name="resourceErrors">Ресурсы. Ошибки.</param> /// <param name="service">Сервис.</param> public ModIdentityServerWebMvcPartAccountJobs( CoreBaseResourceErrors coreBaseResourceErrors, ModIdentityServerBaseResourceSuccesses resourceSuccesses, ModIdentityServerBaseResourceErrors resourceErrors, ModIdentityServerWebMvcPartAccountService service ) { JobLoginGet = new ModIdentityServerWebMvcPartAccountJobLoginGetService( service.GetLogin, coreBaseResourceErrors ); JobLoginPost = new ModIdentityServerWebMvcPartAccountJobLoginPostService( service.PostLogin, coreBaseResourceErrors, resourceSuccesses, resourceErrors ); JobLogoutGet = new ModIdentityServerWebMvcPartAccountJobLogoutGetService( service.GetLogout, coreBaseResourceErrors ); JobLogoutPost = new ModIdentityServerWebMvcPartAccountJobLogoutPostService( service.PostLogout, coreBaseResourceErrors ); }
/// <summary> /// Конструктор. /// </summary> /// <param name="configSettings">Конфигурационные настройки.</param> /// <param name="externals">Внешнее.</param> public ModIdentityServerWebMvcPartAccountContext( IModIdentityServerWebMvcPartAccountConfigSettings configSettings, ModIdentityServerWebMvcPartAccountExternals externals ) { Service = new ModIdentityServerWebMvcPartAccountService( configSettings, externals.ResourceTitles ); Jobs = new ModIdentityServerWebMvcPartAccountJobs( externals.CoreBaseResourceErrors, externals.ResourceSuccesses, externals.ResourceErrors, Service ); }