/// <summary> /// Returns a value which is indicating if the webservice is available or not /// </summary> /// <returns></returns> public bool IsWebserviceAvailable() { bool result = false; int retryCount = 0; PixelService.Application app = new PixelService.Application(); PixelService.testService test = new PixelService.testService(); test.message = "test"; do { try { Logger.LogInfo("Try: " + retryCount); app.testService(test); result = true; } catch(Exception ex) { Logger.LogError("Error while checking if webservice is available", ex); result = false; System.Threading.Thread.Sleep(1000); } retryCount++; } while (!(result == true)); return result; }
/// <summary> /// Initialize the engine /// </summary> public WebserviceLEDRenderEngine() { m_Application = new PixelService.Application(); Initialize(); }