Exemple #1
0
 public static void RegisterProxy(IBaseProxy proxy)
 {
     if (!_proxyList.Contains(proxy))
     {
         _proxyList.Add(proxy);
     }
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ProxyOperationManager"/> class.
        /// </summary>
        ///
        /// <param name="requestData">Request data instance.</param>
        /// <param name="requestSender">Request sender instance.</param>
        /// <param name="testHostManager">Test host manager instance.</param>
        /// <param name="baseProxy">The base proxy.</param>
        public ProxyOperationManager(
            IRequestData requestData,
            ITestRequestSender requestSender,
            ITestRuntimeProvider testHostManager,
            IBaseProxy baseProxy)
        {
            this.RequestData     = requestData;
            this.RequestSender   = requestSender;
            this.TestHostManager = testHostManager;
            this.baseProxy       = baseProxy;

            this.initialized             = false;
            this.testHostLaunched        = false;
            this.testHostProcessId       = -1;
            this.processHelper           = new ProcessHelper();
            this.CancellationTokenSource = new CancellationTokenSource();
        }