C# 클래스 Bari.Core.Build.Cache.CachedBuilder

Wraps a builder so it is only ran if its dependencies has been modified, or the cache has been corrupted.
상속: IBuilder
파일 보기 프로젝트 열기: vigoo/bari 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddPrerequisite ( IBuilder target ) : void
CachedBuilder ( IBuilder wrappedBuilder, IBuildCache cache, [ targetDir ) : System

Creates a cached builder

CanRun ( ) : bool

Verifies if the builder is able to run. Can be used to fallback to cached results without getting en error.

RemovePrerequisite ( IBuilder target ) : void
Run ( IBuildContext context ) : ISet

Runs this builder

ToString ( ) : string

Returns a string that represents the current object.

메소드 상세

AddPrerequisite() 공개 메소드

public AddPrerequisite ( IBuilder target ) : void
target IBuilder
리턴 void

CachedBuilder() 공개 메소드

Creates a cached builder
public CachedBuilder ( IBuilder wrappedBuilder, IBuildCache cache, [ targetDir ) : System
wrappedBuilder IBuilder The builder instance to be wrapped
cache IBuildCache The cache implementation to be used
targetDir [ The target directory's file system abstraction
리턴 System

CanRun() 공개 메소드

Verifies if the builder is able to run. Can be used to fallback to cached results without getting en error.
public CanRun ( ) : bool
리턴 bool

RemovePrerequisite() 공개 메소드

public RemovePrerequisite ( IBuilder target ) : void
target IBuilder
리턴 void

Run() 공개 메소드

Runs this builder
public Run ( IBuildContext context ) : ISet
context IBuildContext
리턴 ISet

ToString() 공개 메소드

Returns a string that represents the current object.
public ToString ( ) : string
리턴 string