Method FromEndpoint(int, int, int, int, Action?)

Assembly: redb.Route.Http.Hosting.dll

Builds the registration-level limit from endpoint options, or null when the feature is off
(maxConcurrentRequests = 0). onRejected is the
connector's statistics hook (endpoint.RecordRejected).

public static ConcurrencyLimitOptions? FromEndpoint(int maxConcurrentRequests, int requestQueueLimit, int rejectStatusCode, int retryAfterSeconds, Action? onRejected)