コード例 #1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="logger">Регистратор.</param>
 /// <param name="job">Задание.</param>
 public AppPartModProductBaseJobListGetClient(
     ILogger <AppPartModProductBaseJobListGetClient> logger,
     ModProductBaseJobListGetService job
     ) : base(logger)
 {
     Job = job;
 }
コード例 #2
0
ファイル: ModProductBaseJobs.cs プロジェクト: balkar20/Vlad
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="coreBaseResourceErrors">Ядро. Основа. Ресурсы. Ошибки.</param>
        /// <param name="dataBaseSettings">Данные. Основа. Настройки.</param>
        /// <param name="resourceSuccesses">Ресурсы. Успехи.</param>
        /// <param name="resourceErrors">Ресурсы. Ошибки.</param>
        /// <param name="service">Сервис.</param>
        public ModProductBaseJobs(
            CoreBaseResourceErrors coreBaseResourceErrors,
            DataBaseSettings dataBaseSettings,
            ModProductBaseResourceSuccesses resourceSuccesses,
            ModProductBaseResourceErrors resourceErrors,
            ModProductBaseService service
            )
        {
            JobItemDelete = new ModProductBaseJobItemDeleteService(
                service.DeleteItem,
                coreBaseResourceErrors,
                resourceSuccesses
                );

            JobItemGet = new ModProductBaseJobItemGetService(
                service.GetItem,
                coreBaseResourceErrors
                );

            JobItemInsert = new ModProductBaseJobItemInsertService(
                service.SaveItem,
                coreBaseResourceErrors,
                resourceSuccesses,
                resourceErrors,
                dataBaseSettings
                );

            JobItemUpdate = new ModProductBaseJobItemUpdateService(
                service.SaveItem,
                coreBaseResourceErrors,
                resourceSuccesses,
                resourceErrors,
                dataBaseSettings
                );

            JobListGet = new ModProductBaseJobListGetService(
                service.GetList,
                coreBaseResourceErrors
                );

            JobOptionsDummyManyToManyGet = new ModProductBaseJobOptionProductFeatureGetListService(
                service.GetOptionsProductFeature,
                coreBaseResourceErrors
                );

            JobOptionsDummyOneToManyGet = new ModProductBaseJobOptionProductCategoryListGetService(
                service.GetOptionsProductCategory,
                coreBaseResourceErrors
                );
        }