public TypeRuleBuilder(TypeAllowedRule rule) { this.allowed = new TypeAllowedBuilder(rule.Allowed.Fallback); this.conditions = rule.Allowed.Conditions.Select(c => new TypeConditionRuleBuilder(c.TypeCondition, c.Allowed)).ToMList(); this.availableConditions = rule.AvailableConditions; this.allowedBase = rule.AllowedBase; this.resource = rule.Resource; this.properties = rule.Properties; this.operations = rule.Operations; this.queries = rule.Queries; this.RebindEvents(); }
public TypeRuleBuilder(TypeAllowedRule rule) { this.allowed = new TypeAllowedBuilder(rule.Allowed.Fallback); this.conditions = rule.Allowed.Conditions.Select(c => new TypeConditionRuleBuilder(c.TypeCondition, c.Allowed)).ToMList(); this.availableConditions = rule.AvailableConditions; this.allowedBase = rule.AllowedBase; this.Resource = rule.Resource; this.Properties = rule.Properties; this.Operations = rule.Operations; this.Queries = rule.Queries; this.RebindEvents(); }