Пример #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;
 }