private Process StartPing(int timeout) { if (string.IsNullOrEmpty(TestServer)) { throw new ArgumentNullException(nameof(TestServer)); } ProcessStartInfo pingInfo = ProcessConnector.CreateProcessInfo(PING_FILENAME); pingInfo.Arguments = $"-n 1 -w {timeout} {TestServer}"; return(Process.Start(pingInfo)); }
public TsengMonitor(PartyStatusViewModel partyStatusViewModel, ProcessConnector processConnector, GameDatabase gameDatabase, NativeMemoryReader memoryReader, IStatusHubEmitter statusHubEmitter, ILogger <TsengMonitor> logger) { _memoryReader = memoryReader; _partyStatusViewModel = partyStatusViewModel; _processConnector = processConnector; _gameDatabase = gameDatabase; _statusHubEmitter = statusHubEmitter; _logger = logger; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ProcessConnector obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public GameDatabaseLoader(ProcessConnector processConnector, IModded modded) { _processConnector = processConnector; this._modded = modded; }
public GameDatabaseLoader(ProcessConnector processConnector) { _processConnector = processConnector; }
private static ProcessStartInfo ConnectStartInfo(string connectionName) => ProcessConnector.CreateProcessInfo(NETSH, $"wlan connect {connectionName}");
public void AddToProcessConnector(ProcessConnector processConnector) { base.AddObject("ProcessConnector", processConnector); }
public static ProcessConnector CreateProcessConnector(global::System.Guid ID) { ProcessConnector processConnector = new ProcessConnector(); processConnector.ID = ID; return processConnector; }
public NativeMemoryReader(ProcessConnector processConnector, ILogger <NativeMemoryReader> logger) { _processConnector = processConnector; _logger = logger; }