Пример #1
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="coreBaseResourceErrors">Ядро. Основа. Ресурсы. Ошибки.</param>
 /// <param name="resourceSuccesses">Ресурсы. Успехи.</param>
 /// <param name="resourceErrors">Ресурсы. Ошибки.</param>
 /// <param name="configSettings">Конфигурационные настройки.</param>
 /// <param name="service">Сервис.</param>
 public ModAutomationBasePartNetCoreJobs(
     CoreBaseResourceErrors coreBaseResourceErrors,
     ModAutomationBaseResourceSuccesses resourceSuccesses,
     ModAutomationBaseResourceErrors resourceErrors,
     IModAutomationBasePartNetCoreConfigSettings configSettings,
     ModAutomationBasePartNetCoreService service
     )
 {
     JobCodeGenerate = new ModAutomationBasePartNetCoreJobCodeGenerateService(
         service.GenerateCode,
         coreBaseResourceErrors,
         resourceSuccesses,
         configSettings
         );
 }
Пример #2
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="configSettings">Конфигурационные настройки.</param>
        /// <param name="externals">Внешнее.</param>
        public ModAutomationBasePartNetCoreContext(
            IModAutomationBasePartNetCoreConfigSettings configSettings,
            ModAutomationBasePartNetCoreExternals externals
            )
        {
            Service = new ModAutomationBasePartNetCoreService();

            Jobs = new ModAutomationBasePartNetCoreJobs(
                externals.CoreBaseResourceErrors,
                externals.ResourceSuccesses,
                externals.ResourceErrors,
                configSettings,
                Service
                );
        }