Class UnixStdStreamRedirector
Redirects native Linux standard output and error streams to memory, allowing capturing and handling of their output within managed code.
public class UnixStdStreamRedirector : DisposableObject, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IDisposable, IBaseObject
- Inheritance
-
UnixStdStreamRedirector
- Implements
Constructors
- UnixStdStreamRedirector()
Initializes a new instance of the UnixStdStreamRedirector class.
Methods
- DisposeManaged()
Disposes managed resources and cleans up redirection.
- RedirectNativeStdErrToMemory()
Redirects the native standard error stream to memory.
- RedirectNativeStdOutToMemory()
Redirects the native standard output stream to memory.
- RedirectStdErrOnMacOs()
Redirects the standard error stream to memory on macOS.
- StopRedirectingStdErr()
Stops redirecting the standard error stream.
- StopRedirectingStdOut()
Stops redirecting the standard output stream.
Events
- StdErrReceived
Occurs when a line is received from the redirected standard error stream.
- StdOutReceived
Occurs when a line is received from the redirected standard output stream.