11 lines
413 B
C#
11 lines
413 B
C#
public static class AlertCreationGuard
|
|
{
|
|
public static void EnsureAllowed(AlertType alertType)
|
|
{
|
|
#pragma warning disable CS0618 // Guard rejects deprecated SEPSIS_WARNING creation
|
|
if (alertType == AlertType.SepsisWarning)
|
|
#pragma warning restore CS0618
|
|
throw new InvalidOperationException(
|
|
"SEPSIS_WARNING is deprecated. Use SOFA_SEPSIS for sepsis detection.");
|
|
}
|
|
} |