Move logic for restarting Node child process into NodeServicesImpl. Tidy up lots.

This commit is contained in:
SteveSandersonMS
2016-07-07 11:35:25 +01:00
parent 4fb3b18868
commit a19e37f3c0
8 changed files with 245 additions and 206 deletions

View File

@@ -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;
}
}
}