Exemplo n.º 1
0
 public static Application GetApplicationWithArgs(string[] args)
 {
     lock (locker)
     {
         if (application == null)
         {
             lock (locker)
             {
                 application = new Application(args);
             }
         }
         return(application);
     }
 }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     try
     {
         Services.PlatformService.SetProcessName("Giver");
         application = GetApplicationWithArgs(args);
         application.StartMainLoop();
     }
     catch (Exception e)
     {
         Giver.Logger.Debug("Exception is: {0}", e);
         Exit(-1);
     }
 }
Exemplo n.º 3
0
		public static Application GetApplicationWithArgs(string[] args)
		{
			lock(locker)
			{
				if(application == null)
				{
					lock(locker)
					{
						application = new Application(args);
					}
				}
				return application;
			}
		}
Exemplo n.º 4
0
		public static void Main(string[] args)
		{
			try 
			{
				Services.PlatformService.SetProcessName ("Giver");
				application = GetApplicationWithArgs(args);
				application.StartMainLoop ();
			} 
			catch (Exception e)
			{
				Giver.Logger.Debug("Exception is: {0}", e);
				Exit (-1);
			}
		}