예제 #1
0
        /// <summary>
        /// Creates an instance of <see cref="ExternalVmSandboxedProcess"/>.
        /// </summary>
        public ExternalVmSandboxedProcess(
            SandboxedProcessInfo sandboxedProcessInfo,
            VmInitializer vmInitializer,
            ExternalToolSandboxedProcessExecutor tool)
            : base(sandboxedProcessInfo)
        {
            Contract.Requires(vmInitializer != null);
            Contract.Requires(tool != null);

            m_vmInitializer = vmInitializer;
            m_tool          = tool;
        }
예제 #2
0
        /// <summary>
        /// Creates an instance of <see cref="ExternalVmSandboxedProcess"/>.
        /// </summary>
        public ExternalVmSandboxedProcess(
            SandboxedProcessInfo sandboxedProcessInfo,
            VmInitializer vmInitializer,
            ExternalToolSandboxedProcessExecutor tool,
            string externalSandboxedProcessDirectory)
            : base(sandboxedProcessInfo, Path.Combine(externalSandboxedProcessDirectory, nameof(ExternalVmSandboxedProcess)))
        {
            Contract.Requires(vmInitializer != null);
            Contract.Requires(tool != null);

            m_vmInitializer = vmInitializer;
            m_tool          = tool;
        }
예제 #3
0
 /// <summary>
 /// Creates an instance of <see cref="ExternalToolSandboxedProcess"/>.
 /// </summary>
 public ExternalToolSandboxedProcess(SandboxedProcessInfo sandboxedProcessInfo, ExternalToolSandboxedProcessExecutor tool)
     : base(sandboxedProcessInfo)
 {
     Contract.Requires(tool != null);
     m_tool = tool;
 }