예제 #1
0
        /// <summary>
        /// Specialized replay for Runtime ctor
        /// </summary>
        /// <param name="currentInstance"></param>
        private void ReplayHTMLRuntimeCtor(BindingInstance currentInstance)
        {
            _replayParams = new string[currentInstance.Parameters.Length];
            for (int i = 0; i < currentInstance.Parameters.Length; i++)
            {
                if (currentInstance.Parameters[i].Equals("--record"))
                {
                    _replayParams[i] = "--replay";
                }
                else if (currentInstance.Parameters[i].Equals("--record+"))
                {
                    _replayParams[i] = "--replay+";
                }
                else
                {
                    _replayParams[i] = (string)currentInstance.Parameters[i];
                }
            }
            HTMLRuntimeConfiguration htmlconfig = new HTMLRuntimeConfiguration(ReplayParams);

            //Loading the runtime
            _runtime = new mwr.HTMLRuntime(htmlconfig);
            if (_runtime != null)
            {
                _runtime.Configuration.EnableReplay = true;
            }
        }
예제 #2
0
 /// <summary>
 /// Specialized replay for Runtime ctor
 /// </summary>
 /// <param name="currentInstance"></param>
 private void ReplayHTMLRuntimeCtor(BindingInstance currentInstance)
 {
     _replayParams = new string[currentInstance.Parameters.Length];
     for (int i = 0; i < currentInstance.Parameters.Length; i++)
     {
         if (currentInstance.Parameters[i].Equals("--record"))
         {
             _replayParams[i] = "--replay";
         }
         else if (currentInstance.Parameters[i].Equals("--record+"))
         {
             _replayParams[i] = "--replay+";
         }
         else
         {
             _replayParams[i] = (string)currentInstance.Parameters[i];
         }
     }
     HTMLRuntimeConfiguration htmlconfig = new HTMLRuntimeConfiguration(ReplayParams);
     //Loading the runtime
     _runtime = new mwr.HTMLRuntime(htmlconfig);
     if (_runtime != null)
     {
         _runtime.Configuration.EnableReplay = true;
     }
 }
예제 #3
0
 /// <summary>
 /// Specialized replay for Shutdown
 /// </summary>
 private void ReplayHTMLRuntimeShutdown()
 {
     _runtime.ShutDown();
     _runtime        = null;
     RuntimeShutDown = true;
 }
예제 #4
0
 /// <summary>
 /// Specialized replay for Shutdown
 /// </summary>
 private void ReplayHTMLRuntimeShutdown()
 {
     _runtime.ShutDown();
     _runtime = null;
     RuntimeShutDown = true;
 }