Files
Cleanuparr/code/Common/Configuration/Logging/SignalRLogConfig.cs
Flaminel a1bd278652 #21
2025-05-19 13:40:59 +03:00

26 lines
563 B
C#

namespace Common.Configuration.Logging;
/// <summary>
/// Configuration options for SignalR log streaming
/// </summary>
public class SignalRLogConfig : IConfig
{
/// <summary>
/// Whether SignalR logging is enabled
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// Number of log entries to buffer for new connections
/// </summary>
public int BufferSize { get; set; } = 100;
public void Validate()
{
if (BufferSize < 0)
{
BufferSize = 100;
}
}
}