Method Create
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
Create(int, int, int)
States the capacity the queue runs under.
public static JobCapacitySettings Create(int maxConcurrentJobs, int maxConcurrentJobsPerType, int maxQueueDepthPerType)
Parameters
maxConcurrentJobsintHow many jobs this process may run at once, across every type together.
maxConcurrentJobsPerTypeintHow many jobs of one type this process may run at once.
maxQueueDepthPerTypeintHow many jobs of one type may be waiting before enqueuing expresses backpressure.
Returns
- JobCapacitySettings
The validated capacity.
Exceptions
- ArgumentOutOfRangeException
Thrown when a bound is not positive, or when
maxConcurrentJobsPerTypeexceedsmaxConcurrentJobs.