Example #1
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="coreBaseResourceErrors">Ядро. Основа. Ресурсы. Ошибки.</param>
        /// <param name="resourceSuccesses">Ресурсы. Успехи.</param>
        /// <param name="resourceErrors">Ресурсы. Ошибки.</param>
        /// <param name="service">Сервис.</param>
        public HostBasePartAuthJobs(
            CoreBaseResourceErrors coreBaseResourceErrors,
            HostBasePartAuthResourceSuccesses resourceSuccesses,
            HostBasePartAuthResourceErrors resourceErrors,
            HostBasePartAuthService service
            )
        {
            JobCurrentUserGet = new HostBasePartAuthJobCurrentUserGetService(
                service.GetCurrentUser,
                coreBaseResourceErrors,
                resourceSuccesses,
                resourceErrors
                );

            JobSeed = new HostBasePartAuthJobSeedService(
                service.Seed,
                coreBaseResourceErrors,
                resourceErrors
                );

            JobUserEntityCreate = new HostBasePartAuthJobUserEntityCreateService(
                service.CreateUserEntity,
                coreBaseResourceErrors,
                resourceSuccesses,
                resourceErrors
                );
        }
Example #2
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="configSettings">Конфигурационные настройки.</param>
        /// <param name="externals">Внешнее.</param>
        public HostBasePartAuthContext(
            IHostBasePartAuthConfigSettings configSettings,
            HostBasePartAuthExternals externals
            )
        {
            Resources = new HostBasePartAuthResources(
                externals.ResourceErrorsLocalizer,
                externals.ResourceSuccessesLocalizer
                );

            Service = new HostBasePartAuthService(configSettings);

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