Exemple #1
0
        protected override void InternalProcessRecord()
        {
            base.InternalProcessRecord();
            TransportProcessingQuotaConfig transportThrottlingConfig = base.Session.GetTransportThrottlingConfig();

            if (this.AmWeight != null)
            {
                transportThrottlingConfig.AmWeight = this.AmWeight.Value;
            }
            if (this.AsWeight != null)
            {
                transportThrottlingConfig.AsWeight = this.AsWeight.Value;
            }
            if (this.CalculationEnabled != null)
            {
                transportThrottlingConfig.CalculationEnabled = this.CalculationEnabled.Value;
            }
            if (this.CalculationFrequency != null)
            {
                transportThrottlingConfig.CalculationFrequency = this.CalculationFrequency.Value;
            }
            if (this.CostThreshold != null)
            {
                transportThrottlingConfig.CostThreshold = this.CostThreshold.Value;
            }
            if (this.ThrottlingEnabled != null)
            {
                transportThrottlingConfig.ThrottlingEnabled = this.ThrottlingEnabled.Value;
            }
            if (this.EtrWeight != null)
            {
                transportThrottlingConfig.EtrWeight = this.EtrWeight.Value;
            }
            if (this.TimeWindow != null)
            {
                transportThrottlingConfig.TimeWindow = this.TimeWindow.Value;
            }
            if (this.ThrottleFactor != null)
            {
                transportThrottlingConfig.ThrottleFactor = this.ThrottleFactor.Value;
            }
            if (this.RelativeCostThreshold != null)
            {
                transportThrottlingConfig.RelativeCostThreshold = this.RelativeCostThreshold.Value;
            }
            base.Session.SetTransportThrottlingConfig(transportThrottlingConfig);
        }
 public void SetTransportThrottlingConfig(TransportProcessingQuotaConfig config)
 {
     this.DataProvider.Save(config);
 }