# IAnalyzerConfigurationService

> Represents a component that allows you to register rules and counters in the Workflow Analyzer.

Represents a component that allows you to register rules and counters in the Workflow Analyzer.

## Inheritance

IHasFeature > IAnalyzerConfigurationService

## Methods

### void AddRule<T>(Rule<T> rule) where T : IInspectionObject

Registers a rule in the Analyzer.

| Parameter Type | Parameter Name | Generic Type | Remarks |
| --- | --- | --- | --- |
| Rule<T> | rule | IInspectionObject | An instance of IInspectionObject which represents the rule to be registered. |

### void AddCounter<T>(Counter<T> counter) where T : IInspectionObject

Registers a counter in the Analyzer.

| Parameter Type | Parameter Name | Generic Type | Remarks |
| --- | --- | --- | --- |
| Counter<T> | counter | IInspectionObject | An instance of IInspectionObject which represents the counter to be registered. |

## Properties

| Type | Name | Description |
| --- | --- | --- |
| string | ActiveProfile | The profile where the Workflow Analyzer is executed (e.g. Studio, StudioX). Requires Studio 2022.4 or later. |

## IResult

Represents a result returned from a Workflow Analyzer command.

### Properties

| Type | Name | Description |
| --- | --- | --- |
| bool | HasErrors | Returns `true` if the command has errors. |
| `ICollection<string>` | Messages | A collection of error messages. |
