/// <inheritdoc />
 public void TaskStarting(FacadeTask task)
 {
     try
     {
         server.TaskStarting(GetRemoteTask(task));
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
 /// <inheritdoc />
 public void TaskOutput(FacadeTask task, string text, FacadeTaskOutputType outputType)
 {
     try
     {
         server.TaskOutput(GetRemoteTask(task), text, FacadeUtils.ToTaskOutputType(outputType));
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
 /// <inheritdoc />
 public void TaskProgress(FacadeTask task, string message)
 {
     try
     {
         server.TaskProgress(GetRemoteTask(task), message);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
 /// <inheritdoc />
 public void TaskExplain(FacadeTask task, string explanation)
 {
     try
     {
         server.TaskExplain(GetRemoteTask(task), explanation);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
 /// <inheritdoc />
 public void TaskFinished(FacadeTask task, string message, FacadeTaskResult result)
 {
     try
     {
         server.TaskFinished(GetRemoteTask(task), message, FacadeUtils.ToTaskResult(result));
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
예제 #6
0
 /// <inheritdoc />
 public void LogError(string message)
 {
     try
     {
         Logger.LogError(message);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
예제 #7
0
 public FacadeTestRunState Run(IFacadeTestListener testListener, string assemblyPath, string cref, FacadeOptions facadeOptions)
 {
     try
     {
         return(RunImpl(testListener, assemblyPath, cref, facadeOptions));
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
예제 #8
0
 /// <inheritdoc />
 public void LogMessage(string message)
 {
     try
     {
         Logger.LogMessage(LoggingLevel.NORMAL, message);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
예제 #9
0
 public void Abort()
 {
     try
     {
         AbortImpl();
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
예제 #10
0
 public void Dispose()
 {
     try
     {
         Dispose(true);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
 /// <inheritdoc />
 public void TaskException(FacadeTask task, FacadeTaskException[] exceptions)
 {
     try
     {
         TaskException[] nativeExceptions = Array.ConvertAll <FacadeTaskException, TaskException>(exceptions, FacadeUtils.ToTaskException);
         server.TaskException(GetRemoteTask(task), nativeExceptions);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }
예제 #12
0
        public void WriteLine(string text, FacadeCategory category)
        {
            if (text == null)
            {
                throw new ArgumentNullException("text");
            }

            try
            {
                testListener.WriteLine(text, FacadeUtils.ToCategory(category));
            }
            catch (Exception ex)
            {
                throw ServerExceptionUtils.Wrap(ex);
            }
        }
예제 #13
0
        public void TestResultsUrl(string url)
        {
            if (url == null)
            {
                throw new ArgumentNullException("url");
            }

            try
            {
                testListener.TestResultsUrl(url);
            }
            catch (Exception ex)
            {
                throw ServerExceptionUtils.Wrap(ex);
            }
        }
예제 #14
0
        public void TestFinished(FacadeTestResult result)
        {
            if (result == null)
            {
                throw new ArgumentNullException("result");
            }

            try
            {
                testListener.TestFinished(FacadeUtils.ToTestResult(result));
            }
            catch (Exception ex)
            {
                throw ServerExceptionUtils.Wrap(ex);
            }
        }