in SurfaceDevCenterManager/Program.cs [52:79]
private static int Main(string[] args)
{
ErrorCodes result = ErrorCodes.UNSPECIFIED;
CorrelationId = Guid.NewGuid();
try
{
result = MainAsync(args).GetAwaiter().GetResult();
}
catch (Exception e)
{
Console.WriteLine("Unhandled Exception:");
Console.WriteLine(e.ToString());
Console.WriteLine("Last Command:");
DevCenterErrorDetailsDump(LastCommand);
result = ErrorCodes.UNHANDLED_EXCEPTION;
}
Console.WriteLine("Correlation Id: {0}", CorrelationId.ToString());
Console.WriteLine("Return: {0} ({1})", (int)result, result.ToString());
if (System.Diagnostics.Debugger.IsAttached)
{
//Break debugger to look at command line output before the window disappears
System.Diagnostics.Debugger.Break();
}
return (int)result;
}