public static HostConfigurator RunAs(this HostConfigurator configurator, string username, string password) { if (configurator == null) throw new ArgumentNullException("configurator"); var runAsConfigurator = new RunAsUserHostConfigurator(username, password); configurator.AddConfigurator(runAsConfigurator); return configurator; }
public static HostConfigurator RunAs(this HostConfigurator configurator, string username, string password) { if (configurator == null) { throw new ArgumentNullException("configurator"); } var runAsConfigurator = new RunAsUserHostConfigurator(username, password); configurator.AddConfigurator(runAsConfigurator); return(configurator); }