Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Redirect stdin/stdou on linux container #54

Open
CarlosArmiliato opened this issue Mar 14, 2021 · 0 comments
Open

Redirect stdin/stdou on linux container #54

CarlosArmiliato opened this issue Mar 14, 2021 · 0 comments

Comments

@CarlosArmiliato
Copy link

Hi,

I'm using this project and i testd linux stdout redirection.
If i'm running on Linux OS, this project wil write html on file and read from there to generated PDF file.

I believe it is because stdin/stdou redirection wont be working in the past.
But i'm test now, with the last .Net5, and that work fine.

I only remove the else clausule, and alow the program perform the same code to Windows and Linux OS.
On the WkhtmlDriver class, the else reference if clausule on line 40:
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))

I think use stdin/stdou redirection are better then write and read from the disk.

Wath do you think about remove that "if" as i did?
Can i open pull request with this modification?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant