private WorkItemDto FetchWork() { using (WcfClient wcfClient = new WcfClient(_serverAdr)) { return(wcfClient.GetWork(_nodename)); } }
private void Register() { Console.Out.WriteLine("Register at server..."); using (WcfClient wcfClient = new WcfClient(_serverAdr)) { wcfClient.Register(_nodename, _browsers); } }
private void SendTestResultToServer(TestResult testResult) { Console.Out.WriteLine("Result: " + testResult.TestState); using (WcfClient objWcfClient = new WcfClient(_serverAdr)) { objWcfClient.FinishedWork(_nodename, testResult); } Console.Out.WriteLine("Finished."); }
private void UpdateTestcases(Testsystem testsystem) { const string testfile = @"LocalTests.dll"; byte[] data; using (WcfClient wcfClient = new WcfClient(_serverAdr)) { data = wcfClient.FetchDll(_nodename, testsystem.Name); } using (FileStream fileStream = new FileStream(testfile, FileMode.Create, FileAccess.Write)) { fileStream.Write(data, 0, data.Length); } _testcaseProvider = new TestcaseProvider(testfile); _testcaseProvider.CreateAppDomain(); }
private WorkItemDto FetchWork() { using (WcfClient wcfClient = new WcfClient(_serverAdr)) { return wcfClient.GetWork(_nodename); } }