namespace ClassNotify.Server.Infrastructure.Logging; public static class LoggingExtensions { public static IDisposable? BeginClassNotifyScope( this ILogger logger, string correlationId, string? tenantId = null, string? classroomId = null, string? deviceId = null, string? notificationId = null, string? stage = null) { return logger.BeginScope(new Dictionary { ["CorrelationId"] = correlationId, ["TenantId"] = tenantId, ["ClassroomId"] = classroomId, ["DeviceId"] = deviceId, ["NotificationId"] = notificationId, ["Stage"] = stage }); } }