Running Code in an Isolated Process #100028
Unanswered
TonyValenti
asked this question in
Q&A
Replies: 3 comments 5 replies
-
var hostOne = Host.CreateDefaultBuilder(args).Build();
var hostTwo = Host.CreateDefaultBuilder(args).Build();
var hostingTasks = new List<Task>(capacity: 2)
{
hostOne.RunAsync(...),
hostTwo.RunAsync(...)
};
await Task.WhenAll(hostingTasks); Would something like this not work? Disclaimer... I'm not sure why you'd want to create separate hosts. |
Beta Was this translation helpful? Give feedback.
3 replies
-
There are also remote executors used in runtime tests. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does .NET have any built-in (or easily accessible) way of running code in an isolated process?
Whether it is in .NET or a nuget package, I'm looking to be able to do something like this:
I imagine the library using something like gRPC or JsonStreamRpc.
Beta Was this translation helpful? Give feedback.
All reactions