internal ManifestRunner(AppDomain domain, ActivationContext activationContext) { this.m_domain = domain; string text; string text2; CmsUtils.GetEntryPoint(activationContext, out text, out text2); if (string.IsNullOrEmpty(text)) { throw new ArgumentException(Environment.GetResourceString("Argument_NoMain")); } if (string.IsNullOrEmpty(text2)) { this.m_args = new string[0]; } else { this.m_args = text2.Split(new char[] { ' ' }); } this.m_apt = ApartmentState.Unknown; string applicationDirectory = activationContext.ApplicationDirectory; this.m_path = Path.Combine(applicationDirectory, text); }
internal ManifestRunner(AppDomain domain, ActivationContext activationContext) { m_domain = domain; string file, parameters; CmsUtils.GetEntryPoint(activationContext, out file, out parameters); if (String.IsNullOrEmpty(file)) { throw new ArgumentException(Environment.GetResourceString("Argument_NoMain")); } if (String.IsNullOrEmpty(parameters)) { m_args = new string[0]; } else { m_args = parameters.Split(' '); } m_apt = ApartmentState.Unknown; // get the 'merged' application directory path. string directoryName = activationContext.ApplicationDirectory; m_path = Path.Combine(directoryName, file); }
internal ManifestRunner(AppDomain domain, ActivationContext activationContext) { m_domain = domain; string file, parameters; CmsUtils.GetEntryPoint(activationContext, out file, out parameters); if (parameters == null || parameters.Length == 0) { m_args = new string[0]; } else { m_args = parameters.Split(' '); } m_apt = ApartmentState.Unknown; // get the 'merged' application directory path. string directoryName = activationContext.ApplicationDirectory; m_path = Path.Combine(directoryName, file); }