Added OnBeforeStartExternalProcess callback #177
Added OnBeforeStartExternalProcess callback #177thunder7553 wants to merge 1 commit intoaspnet:devfrom
Conversation
…ons (and OutOfProcessNodeInstance, SocketNodeInstance and HttpNodeInstance) to configure environment of the node.exe process to be started, and the path to the node executable itself. Fixes aspnet#20
|
Hi @thunder7553, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
|
@thunder7553, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
|
Thanks for this! I've now merged it. I hope you don't mind, but I've also changed the API. I was not keen to expand the set of constructor parameters for all the hosting models (even if it's a new optional parameter, it's still something that everyone calling the constructor has to see and figure out the relevance of). But since it was a constructor parameter, the only way to make use of it would have been when calling You can now do this: I know this is slightly more code than would have been needed with the constructor param, but it has the benefit of not interjecting an extra concept to think about for developers who are just trying to instantiate a node instance without wanting to override the process start info in any way. Hope that's OK - let me know if you disagree! |
Added OnBeforeStartExternalProcess callback which to NodeServicesOptions (and OutOfProcessNodeInstance, SocketNodeInstance and HttpNodeInstance) to configure environment of the node.exe process to be started, and the path to the node executable itself. Fixes #20