Example #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 ModAutomationBasePartAngularJobs(
     CoreBaseResourceErrors coreBaseResourceErrors,
     ModAutomationBaseResourceSuccesses resourceSuccesses,
     ModAutomationBaseResourceErrors resourceErrors,
     IModAutomationBasePartAngularConfigSettings configSettings,
     ModAutomationBasePartAngularService service
     )
 {
     JobCodeGenerate = new ModAutomationBasePartAngularJobCodeGenerateService(
         service.GenerateCode,
         coreBaseResourceErrors,
         resourceSuccesses,
         configSettings
         );
 }
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="configSettings">Конфигурационные настройки.</param>
        /// <param name="externals">Внешнее.</param>
        public ModAutomationBasePartAngularContext(
            IModAutomationBasePartAngularConfigSettings configSettings,
            ModAutomationBasePartAngularExternals externals
            )
        {
            Service = new ModAutomationBasePartAngularService();

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