/// <summary> /// /// </summary> /// <param name="assembly"></param> /// <param name="startupArgs"></param> public ApplicationInfo(Assembly assembly, string[] startupArgs, StartupArgumentFlagCollection flags) { if (startupArgs == null) { startupArgs = new string[0]; } if (startupArgs.Length > 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < startupArgs.Length; i++) { sb.AppendFormat("{0}{1}", startupArgs[i], i + 1 == startupArgs.Length ? "" : ","); } Tracer.Verbose("Application started with the following startup arguments: {0}", sb.ToString()); } Asserter.AssertIsNotNull(assembly, "assembly"); _assembly = assembly; _startupArgs = startupArgs; _startupArgumentParser = new StartupArgumentParser(StartupArgumentFormats.All, false, flags); _startupArgumentParser.Parse(startupArgs); }
/// <summary> /// /// </summary> /// <param name="assembly"></param> /// <param name="startupArgs"></param> public ApplicationInfo(Assembly assembly, string[] startupArgs, StartupArgumentFlagCollection flags) { if (startupArgs == null) startupArgs = new string[0]; if(startupArgs.Length > 0) { StringBuilder sb = new StringBuilder(); for(int i = 0; i < startupArgs.Length; i++) sb.AppendFormat("{0}{1}", startupArgs[i], i + 1 == startupArgs.Length ? "" : ","); Tracer.Verbose("Application started with the following startup arguments: {0}", sb.ToString()); } Asserter.AssertIsNotNull(assembly, "assembly"); _assembly = assembly; _startupArgs = startupArgs; _startupArgumentParser = new StartupArgumentParser(StartupArgumentFormats.All, false, flags); _startupArgumentParser.Parse(startupArgs); }