Ejemplo n.º 1
0
        static public void ShutDown()
        {
            #region LOG
            {
                string message = @"Image Download - Shutting down Jobs Service";
                Logger.Global.Log(string.Empty, string.Empty, -1, string.Empty, string.Empty, -1, DicomCommandType.Undefined, DateTime.Now,
                                  LogType.Information, MessageDirection.None, message, null, null);
            }
            #endregion

            JobsService.Instance = null;
            _timer.Enabled       = false;
        }
Ejemplo n.º 2
0
        public void Break(BreakType type)
        {
            #region LOG
            {
                string message = @"Image Download - Session Break";
                Logger.Global.Log(string.Empty, string.Empty, -1, string.Empty, string.Empty, -1, DicomCommandType.Undefined, DateTime.Now,
                                  LogType.Information, MessageDirection.None, message, null, null);
            }
            #endregion

            if (type == BreakType.Shutdown)
            {
                JobsService.ShutDown();
            }
        }
Ejemplo n.º 3
0
        static public void Init()
        {
            #region LOG
            {
                string message = @"Image Download - Initialize Jobs Service";
                Logger.Global.Log(string.Empty, string.Empty, -1, string.Empty, string.Empty, -1, DicomCommandType.Undefined, DateTime.Now,
                                  LogType.Information, MessageDirection.None, message, null, null);
            }
            #endregion

            JobsService inst = JobsService.Instance;
            JobsQeue.PatientRightsDataAccess     = _PatientRightsDataAccess;
            JobsQeue.DataAccessAgent             = DataAccess;
            JobsQeue.DownloadJobsDataAccessAgent = DownloadJobsDataAccessAgent;
            JobsQeue.MoveToAE = ImageDownloadSession.StorageServerAE;
        }
Ejemplo n.º 4
0
        public override void AddServices()
        {
            #region LOG
            {
                string message = @"Image Download - Session AddServices";
                Logger.Global.Log(string.Empty, string.Empty, -1, string.Empty, string.Empty, -1, DicomCommandType.Undefined, DateTime.Now,
                                  LogType.Information, MessageDirection.None, message, null, null);
            }
            #endregion

            base.AddServices();

            {
                DicomTagTable.Instance.Insert(CustomTags.JobID, 0xffffffff, "MWV175JobIdTAG", DicomVRType.LT, 1, 1, 1);
            }

            JobsService.Init();
            JobsService.Instance.RetryFailedjobs();
        }