C# Класс Catel.ApiCop.Rules.TooManyDependenciesApiCopRule

Rule to prevent too many dependencies on a class.
Наследование: ApiCopRule
Показать файл Открыть проект

Открытые методы

Метод Описание
GetResultAsText ( string tag ) : string

Gets the result as text.

IsValid ( IApiCop apiCop, string tag ) : bool

Determines whether the specified ApiCop rule is valid.

SetNumberOfDependenciesInjected ( Type type, int numberOfDependencies ) : void

Sets the number of dependencies injected for the specified type.

TooManyDependenciesApiCopRule ( string name, string description, ApiCopRuleLevel level, string url = null ) : System

Initializes a new instance of the ApiCopRule class.

Описание методов

GetResultAsText() публичный Метод

Gets the result as text.
public GetResultAsText ( string tag ) : string
tag string The tag.
Результат string

IsValid() публичный Метод

Determines whether the specified ApiCop rule is valid.
public IsValid ( IApiCop apiCop, string tag ) : bool
apiCop IApiCop The ApiCop.
tag string The tag.
Результат bool

SetNumberOfDependenciesInjected() публичный Метод

Sets the number of dependencies injected for the specified type.
public SetNumberOfDependenciesInjected ( Type type, int numberOfDependencies ) : void
type System.Type The type.
numberOfDependencies int The number of dependencies.
Результат void

TooManyDependenciesApiCopRule() публичный Метод

Initializes a new instance of the ApiCopRule class.
public TooManyDependenciesApiCopRule ( string name, string description, ApiCopRuleLevel level, string url = null ) : System
name string The name.
description string The description.
level ApiCopRuleLevel The level.
url string The URL.
Результат System