Stufe 4c (#764): Bezeichner auf Englisch - Typen, Methoden, Felder, Parameter, Locals, Testnamen
Mit Roslyn umbenannt (Verweise folgen, Zeichenketten bleiben unberuehrt). Nicht umbenannt, weil gespeichert oder ueber die API gebunden (Stufe 4e): Properties, Record-Parameter, Enum-Member sowie die Parameter der Endpunkt-Handler (Routen-/Query-Bindung ueber den Namen). Die JSON-Felder anonymer Objekte bleiben ausdruecklich benannt (JsonFilter: pfad). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
837a634a22
commit
77062facc9
@@ -111,35 +111,35 @@ internal static class HeadlessRun
|
||||
/// the orderly shutdown is still running — and exactly then the write buffer
|
||||
/// of the log is flushed. An end without these lines is the state from #529.</para>
|
||||
/// </summary>
|
||||
private static async Task WaitForShutdownAsync(ILogger logger, InstanceControl steuerung)
|
||||
private static async Task WaitForShutdownAsync(ILogger logger, InstanceControl control)
|
||||
{
|
||||
var schluss = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||
var conclusion = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||
|
||||
void Beenden(string grund)
|
||||
void Shutdown(string reason)
|
||||
{
|
||||
if (schluss.TrySetResult())
|
||||
logger.LogInformation("Beendigung angefordert ({Grund}).", grund);
|
||||
if (conclusion.TrySetResult())
|
||||
logger.LogInformation("Beendigung angefordert ({Grund}).", reason);
|
||||
}
|
||||
|
||||
// The instance manager, via the socket. The usual way, as soon as it exists:
|
||||
// it asks instead of shooting - an instance process holds an open database
|
||||
// and running agents, and both want to be brought to an end.
|
||||
steuerung.ShutdownRequested += () => Beenden("Instanzmanager");
|
||||
control.ShutdownRequested += () => Shutdown("Instanzmanager");
|
||||
|
||||
using var sigterm = PosixSignalRegistration.Create(PosixSignal.SIGTERM, context =>
|
||||
{
|
||||
context.Cancel = true;
|
||||
Beenden("SIGTERM");
|
||||
Shutdown("SIGTERM");
|
||||
});
|
||||
|
||||
using var sigint = PosixSignalRegistration.Create(PosixSignal.SIGINT, context =>
|
||||
{
|
||||
context.Cancel = true;
|
||||
Beenden("SIGINT");
|
||||
Shutdown("SIGINT");
|
||||
});
|
||||
|
||||
AppDomain.CurrentDomain.ProcessExit += (_, _) => Beenden("ProcessExit");
|
||||
AppDomain.CurrentDomain.ProcessExit += (_, _) => Shutdown("ProcessExit");
|
||||
|
||||
await schluss.Task;
|
||||
await conclusion.Task;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user