예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     if (args.Length == 0)
     {
         ServiceBase[] ServicesToRun;
         ServicesToRun = new ServiceBase[]
         {
             new PersistentStorageAgentService()
         };
         ServiceBase.Run(ServicesToRun);
     }
     else
     {
         PersistentStorageAgent p = new PersistentStorageAgent();
         p.Fire();
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: mil-oss/fgsms
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[]
            {
                new PersistentStorageAgentService()
            };
                ServiceBase.Run(ServicesToRun);
            }
            else
            {

                PersistentStorageAgent p = new PersistentStorageAgent();
                p.Fire();
            }
        }