예제 #1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="coreBaseResourceErrors">Ядро. Основа. Ресурсы. Ошибки.</param>
 /// <param name="resourceSuccesses">Ресурсы. Успехи.</param>
 /// <param name="resourceErrors">Ресурсы. Ошибки.</param>
 /// <param name="service">Сервис.</param>
 public HostBasePartLdapJobs(
     CoreBaseResourceErrors coreBaseResourceErrors,
     HostBasePartLdapResourceSuccesses resourceSuccesses,
     HostBasePartLdapResourceErrors resourceErrors,
     HostBasePartLdapService service
     )
 {
     JobLogin = new HostBasePartLdapJobLoginService(
         service.Login,
         coreBaseResourceErrors,
         resourceSuccesses,
         resourceErrors
         );
 }
예제 #2
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="configSettings">Конфигурационные настройки.</param>
        /// <param name="externals">Внешнее.</param>
        public HostBasePartLdapContext(
            IHostBasePartLdapConfigSettings configSettings,
            HostBasePartLdapExternals externals
            )
        {
            Resources = new HostBasePartLdapResources(
                externals.ResourceErrorsLocalizer,
                externals.ResourceSuccessesLocalizer
                );

            Service = new HostBasePartLdapService(configSettings);

            Jobs = new HostBasePartLdapJobs(
                externals.CoreBaseResourceErrors,
                Resources.Successes,
                Resources.Errors,
                Service
                );
        }