This commit is contained in:
Mike Phares 2023-04-01 12:28:40 -07:00
parent b673e99f73
commit 88003892a0
2 changed files with 40 additions and 36 deletions

View File

@ -155,9 +155,7 @@ public class Person
log.Information("Enter persons birthday month (press enter if not known) [MMMM || MMM || MM || M]"); log.Information("Enter persons birthday month (press enter if not known) [MMMM || MMM || MM || M]");
line = System.Console.ReadLine(); line = System.Console.ReadLine();
log.Information(". . ."); log.Information(". . .");
if (!string.IsNullOrEmpty(line)) if (string.IsNullOrEmpty(line))
month = line;
else
{ {
log.Information("Enter persons approximate age"); log.Information("Enter persons approximate age");
line = System.Console.ReadLine(); line = System.Console.ReadLine();
@ -166,12 +164,13 @@ public class Person
continue; continue;
approximateYears = line; approximateYears = line;
} }
else
{
month = line;
log.Information("Enter persons birthday day (press enter if not known)"); log.Information("Enter persons birthday day (press enter if not known)");
line = System.Console.ReadLine(); line = System.Console.ReadLine();
log.Information(". . ."); log.Information(". . .");
if (!string.IsNullOrEmpty(line)) if (string.IsNullOrEmpty(line))
day = line;
else
{ {
log.Information("Enter persons approximate age"); log.Information("Enter persons approximate age");
line = System.Console.ReadLine(); line = System.Console.ReadLine();
@ -180,6 +179,9 @@ public class Person
continue; continue;
approximateYears = line; approximateYears = line;
} }
else
{
day = line;
log.Information("Enter persons birthday year (press enter if not known)"); log.Information("Enter persons birthday year (press enter if not known)");
line = System.Console.ReadLine(); line = System.Console.ReadLine();
log.Information(". . ."); log.Information(". . .");
@ -194,6 +196,8 @@ public class Person
continue; continue;
approximateYears = line; approximateYears = line;
} }
}
}
if (month is null || day is null || year is null) if (month is null || day is null || year is null)
dateTime = null; dateTime = null;
else else

View File

@ -77,7 +77,7 @@
"Microsoft.Hosting.Lifetime": "Information" "Microsoft.Hosting.Lifetime": "Information"
} }
}, },
"MaxDegreeOfParallelism": 6, "MaxDegreeOfParallelism": 1,
"Serilog": { "Serilog": {
"Using": [ "Using": [
"Serilog.Sinks.Console", "Serilog.Sinks.Console",