Ejemplo n.º 1
0
 /// <summary>
 /// Invokes event handlers registered to the driver restart event.
 /// </summary>
 /// <param name="driverRestartedClr2Java">Proxy object to the Java driver restart event object.</param>
 public static void Call_ClrSystemRestartHandler_OnRestart(IDriverRestartedClr2Java driverRestartedClr2Java)
 {
     using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemRestartHandler_OnRestart"))
     {
         LOGGER.Log(Level.Info, "*** Restart time is " + driverRestartedClr2Java.GetStartTime());
         _driverBridge.RestartHandlerOnNext(driverRestartedClr2Java);
     }
 }
Ejemplo n.º 2
0
        public static BridgeHandlerManager Call_ClrSystemRestartHandler_OnRestart(
            string httpServerPort,
            IEvaluatorRequestorClr2Java evaluatorRequestorClr2Java,
            IDriverRestartedClr2Java driverRestartedClr2Java)
        {
            IEvaluatorRequestor evaluatorRequestor = new EvaluatorRequestor(evaluatorRequestorClr2Java);

            using (LOGGER.LogFunction("ClrSystemHandlerWrapper::Call_ClrSystemRestartHandler_OnRestart"))
            {
                LOGGER.Log(Level.Info, "*** Restart time is " + driverRestartedClr2Java.GetStartTime());
                LOGGER.Log(Level.Info, "*** httpServerPort: " + httpServerPort);
                var handlers = GetHandlers(httpServerPort, evaluatorRequestor);
                _driverBridge.RestartHandlerOnNext(driverRestartedClr2Java);

                return(handlers);
            }
        }