/// <summary> /// Creates an instance of <see cref="ExternalToolSandboxedProcess"/>. /// </summary> public ExternalToolSandboxedProcess(SandboxedProcessInfo sandboxedProcessInfo, ExternalToolSandboxedProcessExecutor tool, string externalSandboxedProcessDirectory) : base(sandboxedProcessInfo, Path.Combine(externalSandboxedProcessDirectory, nameof(ExternalToolSandboxedProcess))) { Contract.Requires(tool != null); m_tool = tool; }
public static async Task <SandboxedProcess> StartAsync(SandboxedProcessInfo info) { var process = await SandboxedProcessFactory.StartAsync(info, forceSandboxing : true); return((SandboxedProcess)process); }
/// <summary> /// Creates an instance of <see cref="ExternalToolSandboxedProcess"/>. /// </summary> public ExternalToolSandboxedProcess(SandboxedProcessInfo sandboxedProcessInfo, string toolPath) : base(sandboxedProcessInfo) { Contract.Requires(!string.IsNullOrWhiteSpace(toolPath)); m_toolPath = toolPath; }