C# Class 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.
Inheritance: IBuilder
Afficher le fichier Open project: vigoo/bari Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Method Details

AddPrerequisite() public méthode

public AddPrerequisite ( IBuilder target ) : void
target IBuilder
Résultat void

CachedBuilder() public méthode

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
Résultat System

CanRun() public méthode

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

RemovePrerequisite() public méthode

public RemovePrerequisite ( IBuilder target ) : void
target IBuilder
Résultat void

Run() public méthode

Runs this builder
public Run ( IBuildContext context ) : ISet
context IBuildContext
Résultat ISet

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string