Example #1
0
 /// <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 RulesAttributes(Rule rule)
 {
     Name              = rule.Name;
     Id                = rule.Id;
     Type              = rule.Type;
     Action            = new ServiceBus.Models.ActionAttributes(rule.Action);
     FilterType        = rule.FilterType;
     SqlFilter         = new SQLFilterAttributes(rule.SqlFilter);
     CorrelationFilter = new CorrelationFilterAttributes(rule.CorrelationFilter);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the Rule class.
 /// </summary>
 public RulesAttributes()
 {
     Name              = string.Empty;
     Id                = string.Empty;
     Type              = string.Empty;
     Action            = new ActionAttributes();
     FilterType        = Management.ServiceBus.Models.FilterType.SqlFilter;
     SqlFilter         = new SQLFilterAttributes();
     CorrelationFilter = new CorrelationFilterAttributes();
 }