public ThrottleAttribute(ThrottleAction throttleAction, ThrottleMetric throttleMetric, string limit) { Scope = Strings.AppDomain; if (string.IsNullOrEmpty(limit)) { throw Fx.Exception.ArgumentNullOrEmpty(nameof(limit)); } _throttleAction = throttleAction; _throttleMetric = throttleMetric; _limit = limit; }
public ThrottleAttribute(ThrottleAction throttleAction, ThrottleMetric throttleMetric, string limit) { Scope = Strings.AppDomain; if (string.IsNullOrEmpty(limit)) { throw Fx.Exception.ArgumentNullOrEmpty("limit"); } this.throttleAction = throttleAction; this.throttleMetric = throttleMetric; this.limit = limit; }