public Application(INativeApplication nativeApp) { if (nativeApp == null) { throw new ArgumentNullException("nativeApp"); } this.nativeApp = nativeApp; application = this; }
public static void Main(string[] args) { try { application = GetApplicationWithArgs(args); application.StartMainLoop(); } catch (Exception e) { Tasque.Logger.Debug("Exception is: {0}", e); Instance.NativeApplication.Exit(-1); } }
public static Application GetApplicationWithArgs(string[] args) { lock (locker) { if (application == null) { lock (locker) { application = new Application(args); } } return(application); } }
public static void Main(string[] args) { try { application = GetApplicationWithArgs(args); application.StartMainLoop (); } catch (Exception e) { Tasque.Logger.Debug("Exception is: {0}", e); Instance.NativeApplication.Exit (-1); } }
public static Application GetApplicationWithArgs(string[] args) { lock(locker) { if(application == null) { lock(locker) { application = new Application(args); } } return application; } }
public Application(INativeApplication nativeApp) { if (nativeApp == null) throw new ArgumentNullException ("nativeApp"); this.nativeApp = nativeApp; application = this; }