Example #1
0
        static void Main(string[] args)
        {
            string currentDir = Path.GetDirectoryName(Path.GetFullPath(Process.GetCurrentProcess().MainModule.FileName));

            string sourceDir = Path.Combine(currentDir, "Source");
            string dstDir = Path.Combine(currentDir, "Dst");

            //Debugger.Launch();

            var fileProcessor = new FileProcessor(sourceDir, dstDir);

            ServiceBase.Run(fileProcessor);
        }
Example #2
0
		static void Main(string[] args)
		{
			string currentDir = Path.GetDirectoryName(Path.GetFullPath(Process.GetCurrentProcess().MainModule.FileName));

			string inQueue = @".\private$\todoQueue";
			string outQueue = @".\private$\doneQueue"; ;

            //Debugger.Launch();
           // InstallUtil.exe "D:\mentoring\window servises\Samples\FileProcessorService\bin\Debug\FileProcessorService.exe"

            var fileProcessor = new FileProcessor(inQueue, outQueue, 1, 10);

			ServiceBase.Run(fileProcessor);
		}
Example #3
0
        static void Main(string[] args)
        {
            string currentDir = Path.GetDirectoryName(Path.GetFullPath(Process.GetCurrentProcess().MainModule.FileName));

            string inQueue  = @".\private$\todoQueue";
            string outQueue = @".\private$\doneQueue";;

            //Debugger.Launch();
            // InstallUtil.exe "D:\mentoring\window servises\Samples\FileProcessorService\bin\Debug\FileProcessorService.exe"

            var fileProcessor = new FileProcessor(inQueue, outQueue, 1, 10);

            ServiceBase.Run(fileProcessor);
        }