forked from planetarium/mimir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHangfireOption.cs
More file actions
24 lines (20 loc) · 942 Bytes
/
Copy pathHangfireOption.cs
File metadata and controls
24 lines (20 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace Mimir.Options;
public class HangfireOption
{
public const string SectionName = "Hangfire";
public bool IsEnabled { get; set; } = false;
public string RedisConnectionString { get; set; } = string.Empty;
public string DashboardPath { get; set; } = "/hangfire";
public int WorkerCount { get; set; } = Environment.ProcessorCount;
public int CacheExpirationDays { get; set; } = 7;
// Redis connection settings
public string RedisHost { get; set; } = "localhost";
public int RedisPort { get; set; } = 6379;
public string RedisUsername { get; set; } = string.Empty;
public string RedisPassword { get; set; } = string.Empty;
public int RedisDatabase { get; set; } = 0;
public string RedisPrefix { get; set; } = "hangfire:";
// Dashboard authentication
public string Username { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}