Skip to content

Commit c24ae96

Browse files
Add the ShutdownTimeout to the audit instance settings
1 parent abd8df9 commit c24ae96

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/ServiceControlInstaller.Engine/Configuration/ServiceControl/AuditInstanceSettingsList.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@ public static class AuditInstanceSettingsList
3535
Name = "ServiceControl.Audit/EnableFullTextSearchOnBodies",
3636
SupportedFrom = new SemanticVersion(4, 17, 0)
3737
};
38+
39+
public static readonly SettingInfo ShutdownTimeout = new()
40+
{
41+
Name = "ServiceControl/ShutdownTimeout",
42+
SupportedFrom = new SemanticVersion(6, 4, 1)
43+
};
3844
}
3945
}

src/ServiceControlInstaller.Engine/Configuration/ServiceControl/ServiceControlAuditAppConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected override void UpdateSettings()
3434
// When shutting down or restarting the OS we have no control over the
3535
// shutdown timeout. This is by the installer engine that is run _only_ on
3636
// Windows via SCMU or PowerShell
37-
settings.Set(ServiceControlSettings.ShutdownTimeout, "00:02:00", version);
37+
settings.Set(AuditInstanceSettingsList.ShutdownTimeout, "00:02:00", version);
3838

3939
foreach (var manifestSetting in instance.PersistenceManifest.Settings)
4040
{

0 commit comments

Comments
 (0)