Exemplo n.º 1
0
 /// <summary>
 ///     Initialize the Instance of the JobInfoQueue. This can be called to ensure that the instance exists.
 /// </summary>
 public static void Init()
 {
     if (_instance == null)
     {
         _instance = new JobInfoQueue();
     }
 }
Exemplo n.º 2
0
        private bool InitializeJobInfoQueue()
        {
            JobInfoQueue.Init();

            if (!JobInfoQueue.Instance.SpoolFolderIsAccessible())
            {
                var repairSpoolFolderAssistant = new RepairSpoolFolderAssistant();
                return(repairSpoolFolderAssistant.TryRepairSpoolPath());
            }

            return(true);
        }