added dependency injection to TaskRules for ConfigurationProvider