Example #1
0
        public static void StartDeamon(ILifetimeScope scope, CommandLineOptions options)
        {
            bool exit    = false;
            var  watcher = new AssembliesDirectoryWatcher(scope, options);
            var  packageCreationService = scope.Resolve <NuGetPackageCreationService>();

            packageCreationService.SyncAssembliesPackages();
            watcher.Monitor();
            while (exit == false)
            {
                var info = Console.ReadKey();
                if (info.KeyChar == 'c' && info.Modifiers == ConsoleModifiers.Control)
                {
                    exit = true;
                }
            }
        }
Example #2
0
 public static void StartDeamon(ILifetimeScope scope, CommandLineOptions options)
 {
     bool exit = false;
     var watcher = new AssembliesDirectoryWatcher(scope, options);
     var packageCreationService = scope.Resolve<NuGetPackageCreationService>();
     packageCreationService.SyncAssembliesPackages();
     watcher.Monitor();
     while (exit==false)
     {
         var info = Console.ReadKey();
         if (info.KeyChar == 'c' && info.Modifiers == ConsoleModifiers.Control)
             exit = true;
     }
 }