コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WmiProcess" /> class.
 /// </summary>
 /// <param name="startCommand">The start command, typically the exe path (local, not network path) plus any arguments</param>
 /// <param name="hostName">Name of the host.</param>
 /// <param name="wmiConnectionOptions">The WMI connection options.</param>
 public WmiProcess(string startCommand, string hostName, ConnectionOptions wmiConnectionOptions = null)
 {
     this.startCommand = startCommand;
     this.IsProcessRunning = false;
     this.wmiWrapper = new WmiCommandRunner(wmiConnectionOptions ?? new ConnectionOptions(), hostName);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WmiProcess" /> class.
 /// </summary>
 /// <param name="startCommand">The start command, typically the exe path (local, not network path) plus any arguments</param>
 /// <param name="hostName">Name of the host.</param>
 /// <param name="wmiConnectionOptions">The WMI connection options.</param>
 public WmiProcess(string startCommand, string hostName, ConnectionOptions wmiConnectionOptions = null)
 {
     this.startCommand = startCommand;
     this.IsProcessRunning = false;
     this.wmiWrapper = new WmiCommandRunner(wmiConnectionOptions ?? new ConnectionOptions(), hostName);
 }