Как сделать так, чтобы "$type": "IqhApplicationEndEvent"
был первым в списке в разделе «Диагностика»?
{
"@t": "2018-12-03",
"@mt": "{@Diagnostic}",
"Diagnostic": {
"ShutdownReason": "HostingEnvironment",
"Timestamp": "2018-12-03",
"MachineName": "local",
"AdditionalInfo": {},
"$type": "IqhApplicationEndEvent"
}
}
Метод:
public void WriteAudit(DiagnosticTest diagnostic)
{
_Logger?.Write(LogEventLevel.Information, "{@Diagnostic}", diagnostic);
}
Ожидаемый результат:
{
"@t": "2018-12-03",
"@mt": "{@Diagnostic}",
"Diagnostic": {
"$type": "IqhApplicationEndEvent" ---------Sorted to the top
"ShutdownReason": "HostingEnvironment",
"Timestamp": "2018-12-03",
"MachineName": "local",
"AdditionalInfo": {},
}
}