/// <summary> /// Initializes a new instance of the Rule class. /// </summary> /// <param name="id">Resource Id</param> /// <param name="name">Resource name</param> /// <param name="type">Resource type</param> /// <param name="action">Represents the filter actions which are /// allowed for the transformation of a message that have been matched /// by a filter expression.</param> /// <param name="filterType">Filter type that is evaluated against a /// BrokeredMessage. Possible values include: 'SqlFilter', /// 'CorrelationFilter'</param> /// <param name="sqlFilter">Properties of sqlFilter</param> /// <param name="correlationFilter">Properties of /// correlationFilter</param> public PSRulesAttributes(Rule rule) { Name = rule.Name; Id = rule.Id; Type = rule.Type; Action = new ServiceBus.Models.PSActionAttributes(rule.Action); FilterType = rule.FilterType; SqlFilter = new PSSQLFilterAttributes(rule.SqlFilter); CorrelationFilter = new PSCorrelationFilterAttributes(rule.CorrelationFilter); }
/// <summary> /// Initializes a new instance of the Rule class. /// </summary> public PSRulesAttributes() { Name = string.Empty; Id = string.Empty; Type = string.Empty; Action = new PSActionAttributes(); FilterType = Management.ServiceBus.Models.FilterType.SqlFilter; SqlFilter = new PSSQLFilterAttributes(); CorrelationFilter = new PSCorrelationFilterAttributes(); }