/// <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; } }
/// <summary> /// Specialized replay for Shutdown /// </summary> private void ReplayHTMLRuntimeShutdown() { _runtime.ShutDown(); _runtime = null; RuntimeShutDown = true; }