C# Класс Bari.Plugins.FSRepository.Model.RepositoryPattern

Represents a file-system repository pattern, and implements its resolution

The pattern supports the following placeholders: - $ENVVAR replaced to the value of ENVVAR environment variable, if exists. - %NAME replaced to the name of the dependency - %FILENAME replaced to the file name, without extension - %VERSION replaced to the requested version, if any, otherwise empty string - %EXT replaced to the file name's extension

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
RepositoryPattern ( string pattern ) : System.Diagnostics.Contracts

Defines a pattern

Resolve ( IPatternResolutionContext context ) : string

Tries to resolve the pattern using the given context

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

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

Defines a pattern
public RepositoryPattern ( string pattern ) : System.Diagnostics.Contracts
pattern string The pattern as read from the suite definition
Результат System.Diagnostics.Contracts

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

Tries to resolve the pattern using the given context
public Resolve ( IPatternResolutionContext context ) : string
context IPatternResolutionContext The context to get variables from
Результат string