real time output redirection c#