public ReceivePartModified() { StandardKernel Kernal = new StandardKernel(); Kernal.Load(Assembly.GetExecutingAssembly()); _serviceSettings = Kernal.Get <SettingRepository>(); _serviceTaskMgrJob = Kernal.Get <TaskMgrJobsRepository>(); _serviceTaskMgrXml = Kernal.Get <TaskMgrXmlRepository>(); _serviceJobWorkFlow = Kernal.Get <JobWorkflowRepository>(); _serviceIncomingData = Kernal.Get <IncomingDataRepository>(); _serviceJobStackErrorLog = Kernal.Get <JobStackErrorLogRepository>(); _serviceTransactionLog = Kernal.Get <TransactionLogRepository>(); _serviceInbox = Kernal.Get <InboxRepository>(); _servicePipeline = Kernal.Get <PipelineRepository>(); _serviceDataset = Kernal.Get <metadataDatasetRepository>(); _serviceNomStatus = Kernal.Get <NominationStatusRepository>(); _applicationLogs = Kernal.Get <ApplicationLogRepository>(); _serviceBatch = Kernal.Get <BatchRepository>(); _serviceNomination = Kernal.Get <NominationsRepository>(); _serviceMetadatCycle = Kernal.Get <metadataCycleRepository>(); unitOfWork = Kernal.Get <UnitOfWork>(); modalFactory = Kernal.Get <ModalFactory>(); _serviceShipperCompany = Kernal.Get <ShipperCompanyRepository>(); _serviceFileSysIncomingData = Kernal.Get <FileSysIncomingDataRepository>(); _serviceSqtsOpPerTransaction = Kernal.Get <SQTSOPPerTransactionRepository>(); #region get nmqr services _serviceNmqrPerTransaction = Kernal.Get <NMQRPerTransactionRepository>(); #endregion #region get sqts service _serviceSqtsTrackOnNom = Kernal.Get <SQTSTrackOnNomRepository>(); _serviceSqtsFile = Kernal.Get <SQTSFileRepository>(); _serviceSqtsPerTransaction = Kernal.Get <SQTSPerTransactionRepository>(); #endregion #region get email service emailTempalteService = Kernal.Get <EmailTemplateRepository>(); emailQueueService = Kernal.Get <EmailQueueRepository>(); appLogService = Kernal.Get <ApplicationLogRepository>(); #endregion var path = Path.Combine(HostingEnvironment.MapPath("~/App_Data"), "SQTSReductionReasons.xml"); FileInfo fileInfo = new FileInfo(path); XmlDocument xmlRedReason = new XmlDocument(); if (System.IO.File.Exists(path) && !IsFileLocked(fileInfo)) { try { xmlRedReason.Load(path); var redResonNode = xmlRedReason.GetElementsByTagName("Reason"); if (redResonNode != null) { redReasonList = redResonNode.Cast <XmlNode>(); } } catch (Exception ex) { } } }
public CycleIndicatorService(ImetadataCycleRepository ImetadataCycleRepository) { this.ImetadataCycleRepository = ImetadataCycleRepository; }