Example #1
0
        /// <summary>
        /// Reapply specified rule.
        /// </summary>
        /// <param name="ruleId"></param>
        /// <param name="ruleName"></param>
        /// <param name="context"></param>
        public void Reapply(string ruleId, string ruleName, RulesEngineOptions context)
        {
            var request = new ReapplyRulesRequest
            {
                RuleId             = ruleId,
                RuleName           = ruleName,
                ApplyDeleteActions = context.ApplyDeleteActions,
                ApplyRouteActions  = context.ApplyRouteActions
            };

            try
            {
                InsertRequest(request, new ReapplyRulesProgress());
            }
            catch (Exception ex)
            {
                Exception = ex;
                Platform.Log(LogLevel.Error, ex, SR.MessageFailedToStartReapplyRules);
                throw;
            }
        }
Example #2
0
		/// <summary>
		/// Reapply specified rule.
		/// </summary>
		/// <param name="ruleId"></param>
		/// <param name="ruleName"></param>
		/// <param name="context"></param>
		public void Reapply(string ruleId, string ruleName, RulesEngineOptions context)
		{
			var request = new ReapplyRulesRequest
			{
				RuleId = ruleId,
				RuleName = ruleName,
				ApplyDeleteActions = context.ApplyDeleteActions,
				ApplyRouteActions = context.ApplyRouteActions
			};

			try
			{
				InsertRequest(request, new ReapplyRulesProgress());
			}
			catch (Exception ex)
			{
				Exception = ex;
				Platform.Log(LogLevel.Error, ex, SR.MessageFailedToStartReapplyRules);
				throw;
			}
		}
Example #3
0
 public ReapplyRulesUtility(ReapplyRulesRequest request)
 {
     _request = request;
 }