Esempio n. 1
0
        public void Init()
        {
            (bool active, string errorMessage) = fileService.IsActive();
            if (!active)
            {
                logger.LogError(errorMessage);
            }

            (bool clean, string errorMessage2) = fileService.IsClean();
            if (!clean)
            {
                logger.LogError(errorMessage2);
            }
        }
Esempio n. 2
0
        public void Init()
        {
            (bool active, string errorMessage) = fileService.IsActive();
            if (!active)
            {
                logger.LogError(errorMessage);
                throw new Exception(errorMessage);
            }

            (bool clean, string errorMessage2) = fileService.IsClean(environment, false);
            if (!clean)
            {
                logger.LogError(errorMessage2);
                throw new WorkingDirectoryModifiedException(errorMessage2);
            }
        }