public override void OnAllRulesSatisfied() { var ticket = StateBag.Item; TicketRepository.UpdateTicket("background", ticket); TicketRepository.AddHistory("background", new TicketHistory() { TicketId = ticket.TicketId, StaffId = ticket.AssignedToId, CreatedOn = DateTime.Now, Comment = "The ticket has been automatically reassigned according to overdue ticket escalation policy" }); }