C# 클래스 Bari.Core.Build.IBuildContextContracts

상속: IBuildContext
파일 보기 프로젝트 열기: vigoo/bari

공개 메소드들

메소드 설명
AddBuilder ( IBuilder builder ) : void

Adds a new builder to be executed to the context

AddTransformation ( Func transformation ) : void

Adds a new graph transformation which will be executed before the builders

Contains ( IBuilder builder ) : bool

Checks whether the given builder was already added to the context

Dump ( Stream>.Func builderGraphStreamFactory, IBuilder rootBuilder ) : void

Dumps the build context to dot files

DumpDependencies ( IBuilder rootBuilder, IUserOutput output ) : void

Dumps the dependencies of the builder

GetAllResultsIn ( TargetRelativePath targetDir ) : IEnumerable
GetDependencies ( IBuilder builder ) : IEnumerable

Gets the dependent builders of a given builder

GetEffectiveBuilder ( IBuilder builder ) : IBuilder

Gets the registered effective builder instance for a given builder at the given context

GetResults ( IBuilder builder ) : ISet

Gets the result paths returned by the given builder if it has already ran. Otherwise it throws an exception.

Run ( IBuilder rootBuilder, bool>.Func filter = null ) : ISet

Runs all the added builders

메소드 상세

AddBuilder() 공개 메소드

Adds a new builder to be executed to the context
public AddBuilder ( IBuilder builder ) : void
builder IBuilder The builder to be executed
리턴 void

AddTransformation() 공개 메소드

Adds a new graph transformation which will be executed before the builders
public AddTransformation ( Func transformation ) : void
transformation Func Transformation function, returns false to cancel the build process
리턴 void

Contains() 공개 메소드

Checks whether the given builder was already added to the context
public Contains ( IBuilder builder ) : bool
builder IBuilder Builder to look for
리턴 bool

Dump() 공개 메소드

Dumps the build context to dot files
public Dump ( Stream>.Func builderGraphStreamFactory, IBuilder rootBuilder ) : void
builderGraphStreamFactory Stream>.Func Stream factory to open named streams where the builder graphs will be dumped
rootBuilder IBuilder The root builder
리턴 void

DumpDependencies() 공개 메소드

Dumps the dependencies of the builder
public DumpDependencies ( IBuilder rootBuilder, IUserOutput output ) : void
rootBuilder IBuilder The root builder
output IUserOutput Output to dump information to
리턴 void

GetAllResultsIn() 공개 메소드

public GetAllResultsIn ( TargetRelativePath targetDir ) : IEnumerable
targetDir TargetRelativePath
리턴 IEnumerable

GetDependencies() 공개 메소드

Gets the dependent builders of a given builder
public GetDependencies ( IBuilder builder ) : IEnumerable
builder IBuilder Builder to get dependencies of
리턴 IEnumerable

GetEffectiveBuilder() 공개 메소드

Gets the registered effective builder instance for a given builder at the given context
public GetEffectiveBuilder ( IBuilder builder ) : IBuilder
builder IBuilder Builder to resolve
리턴 IBuilder

GetResults() 공개 메소드

Gets the result paths returned by the given builder if it has already ran. Otherwise it throws an exception.
public GetResults ( IBuilder builder ) : ISet
builder IBuilder Builder which was added previously with and was already executed.
리턴 ISet

Run() 공개 메소드

Runs all the added builders
public Run ( IBuilder rootBuilder, bool>.Func filter = null ) : ISet
rootBuilder IBuilder
filter bool>.Func Filter function, can be used to skip specific builders
리턴 ISet