Throttling configuration
 /// <summary>Builds a new instance of the EnforcementConfig class</summary>
 public EnforcementConfig()
 {
     throttling                  = new ThrottlingConfig();
     throttlingPropsChanged      = (sender, args) => OnPropertyChanged(nameof(Throttling));
     throttling.PropertyChanged += throttlingPropsChanged;
     messageProcessors           = 1;
 }
예제 #2
0
 public static Throttling FromConfig(ThrottlingConfig throttlingConfig)
 {
     return new Throttling(throttlingConfig);
 }
예제 #3
0
 private Throttling(ThrottlingConfig throttlingConfig)
 {
     Limit = throttlingConfig.Limit;
     Strategy = throttlingConfig.Strategy;
     Delay = throttlingConfig.Delay;
 }
 /// <summary>Builds a new instance of the EnforcementConfig class</summary>
 public EnforcementConfig()
 {
     MessageProcessors = 1;
     Throttling = new ThrottlingConfig();
 }