Machine.Specifications.ReSharperRunner.Runners.PerAssemblyRunListener.NotifyRedirectedOutput C# (CSharp) Method

NotifyRedirectedOutput() private method

private NotifyRedirectedOutput ( Action notify, object maybeHasCapturedOutput ) : void
notify Action
maybeHasCapturedOutput object
return void
        void NotifyRedirectedOutput(Action<Action<RemoteTask>> notify, object maybeHasCapturedOutput)
        {
            var capture = maybeHasCapturedOutput.GetFieldOrPropertyValue("CapturedOutput");
              if (capture == null)
              {
            // Info doesn't have captured output, nothing to report.
            return;
              }

              var stdOutWithStdErrorAndDebugTrace = capture as string;
              if (stdOutWithStdErrorAndDebugTrace == null)
              {
            return;
              }

              notify(task => _server.TaskOutput(task, stdOutWithStdErrorAndDebugTrace, TaskOutputType.STDOUT));
        }