public static HostConfigurator RunAsLocalSystem(this HostConfigurator configurator) { var runAsConfigurator = new RunAsHostConfigurator(ServiceAccount.LocalSystem); configurator.AddConfigurator(runAsConfigurator); return configurator; }
public static HostConfigurator RunAsNetworkService(this HostConfigurator configurator) { var runAsConfigurator = new RunAsHostConfigurator(ServiceAccount.NetworkService); configurator.AddConfigurator(runAsConfigurator); return configurator; }
public static HostConfigurator RunAs(this HostConfigurator configurator, string username, string password) { var runAsConfigurator = new RunAsHostConfigurator(username, password, ServiceAccount.User); configurator.AddConfigurator(runAsConfigurator); return configurator; }
public static HostConfigurator RunAsLocalService(this HostConfigurator configurator) { var runAsConfigurator = new RunAsHostConfigurator(ServiceAccount.LocalService); configurator.AddConfigurator(runAsConfigurator); return(configurator); }
public static HostConfigurator RunAs(this HostConfigurator configurator, string username, string password) { var runAsConfigurator = new RunAsHostConfigurator(username, password, ServiceAccount.User); configurator.AddConfigurator(runAsConfigurator); return(configurator); }
public static HostConfigurator RunAsNetworkService([NotNull] this HostConfigurator configurator) { if (configurator == null) throw new ArgumentNullException("configurator"); var runAsConfigurator = new RunAsHostConfigurator(ServiceAccount.NetworkService); configurator.AddConfigurator(runAsConfigurator); return configurator; }
public static HostConfigurator RunAs([NotNull] this HostConfigurator configurator, string username, string password) { if (configurator == null) throw new ArgumentNullException("configurator"); var runAsConfigurator = new RunAsHostConfigurator(username, password, ServiceAccount.User); configurator.AddConfigurator(runAsConfigurator); return configurator; }
public static HostConfigurator RunAsLocalService([NotNull] this HostConfigurator configurator) { if (configurator == null) { throw new ArgumentNullException("configurator"); } var runAsConfigurator = new RunAsHostConfigurator(ServiceAccount.LocalService); configurator.AddConfigurator(runAsConfigurator); return(configurator); }
public static HostConfigurator RunAs([NotNull] this HostConfigurator configurator, string username, string password) { if (configurator == null) { throw new ArgumentNullException("configurator"); } var runAsConfigurator = new RunAsHostConfigurator(username, password, ServiceAccount.User); configurator.AddConfigurator(runAsConfigurator); return(configurator); }