static void Main(string[] args)
 {
     if (args.Contains("-p"))
     {
         using (FileProcessor mgr = new FileProcessor(args))
             mgr.ShutdownEvent.WaitOne();
     }
     else
     {
         ServiceBase[] ServicesToRun;
         ServicesToRun = new ServiceBase[]
         {
             new StandardService(args)
         };
         ServiceBase.Run(ServicesToRun);
     }
 }
 public FileMessageClient(FileProcessor parent)
 {
     m_Parent = parent;
 }
 protected override void OnStart(string[] args)
 {
     m_FileProcessor = new FileProcessor(m_Args);
 }