mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 18:19:40 +00:00
Move logic for restarting Node child process into NodeServicesImpl. Tidy up lots.
This commit is contained in:
@@ -4,9 +4,17 @@ namespace Microsoft.AspNetCore.NodeServices.HostingModels
|
||||
{
|
||||
public class NodeInvocationException : Exception
|
||||
{
|
||||
public bool NodeInstanceUnavailable { get; private set; }
|
||||
|
||||
public NodeInvocationException(string message, string details)
|
||||
: base(message + Environment.NewLine + details)
|
||||
{
|
||||
}
|
||||
|
||||
public NodeInvocationException(string message, string details, bool nodeInstanceUnavailable)
|
||||
: this(message, details)
|
||||
{
|
||||
NodeInstanceUnavailable = nodeInstanceUnavailable;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user