/// <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;
 }
Ejemplo n.º 2
0
 public static Throttling FromConfig(ThrottlingConfig throttlingConfig)
 {
     return new Throttling(throttlingConfig);
 }
Ejemplo n.º 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();
 }