public FSharpOption <FSharpParseAndCheckResults> GetParseAndCheckResults(bool allowStaleResults,
                                                                                 [CanBeNull] Action interruptChecker = null)
        {
            var sourceFile = GetSourceFile();

            Assertion.AssertNotNull(sourceFile, "sourceFile != null");
            return(CheckerService.ParseAndCheckFile(sourceFile, allowStaleResults));
        }
 protected void ListCheckers([NotNull] IBuildContext context)
 {
     foreach (var checker in CheckerService.GetEnabledCheckers().OrderBy(c => c.Name))
     {
         var name = checker.Name + " [" + checker.Category + "]";;
         context.Trace.WriteLine(name);
     }
 }
Beispiel #3
0
        public static void Main()
        {
            var service = new CheckerService(new Configuration(), new FileSystemService(new Configuration()));

#if DEBUG
            service.InitialFolderCheck();
            service.StartFolderWatcher();
#else
            var servicesToRun = new ServiceBase[]
            {
                new NotFoundImageCheckerService(service)
            };

            ServiceBase.Run(servicesToRun);
#endif

            Console.ReadLine();
        }
 public NotFoundImageCheckerService(CheckerService service)
 {
     this.service = service;
 }