private string[] ProcessHostOption(string[] args) { var argsList = new List <string>(args); var hostSwitch = argsList.FirstOrDefault(arg => arg.StartsWith("/host:", StringComparison.InvariantCultureIgnoreCase)); if (hostSwitch != null) { argsList.Remove(hostSwitch); hostSwitch = hostSwitch.Substring(6); m_resolver.RegisterInstance <string>("viewType", hostSwitch); return(argsList.ToArray()); } return(args); }