wabbajack/Wabbajack.RateLimiter/ResourceLimitConfiguration.cs

14 lines
377 B
C#
Raw Normal View History

2021-10-23 16:51:17 +00:00
namespace Wabbajack.RateLimiter;
public class ResourceLimitConfiguration
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
public ResourceLimit Disk { get; init; } = new();
public ResourceLimit CPU { get; init; } = new();
public ResourceLimit Network { get; init; } = new();
}
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
public class ResourceLimit
{
public int MaxConcurrentTasks { get; set; } = -1;
public long MaxThroughput { get; set; } = -1;
2021-09-27 12:42:46 +00:00
}