partial void OnConfigurationChanging(CostQuotaConfiguration value);
public static CostQuotaConfiguration CreateCostQuotaConfiguration(double threshold, double quota, string currency) { CostQuotaConfiguration costQuotaConfiguration = new CostQuotaConfiguration(); costQuotaConfiguration.Threshold = threshold; costQuotaConfiguration.Quota = quota; costQuotaConfiguration.Currency = currency; return costQuotaConfiguration; }
public static CostInformation CreateCostInformation(double currentCost, CostQuotaConfiguration configuration) { CostInformation costInformation = new CostInformation(); costInformation.CurrentCost = currentCost; if ((configuration == null)) { throw new global::System.ArgumentNullException("configuration"); } costInformation.Configuration = configuration; return costInformation; }