C# Class Guidelines.Core.Bootstrap.Bootstrapper

Bootstrap foundation class that ensure a bootstrap process occurs only once.
Bootstrapping should only occur once. Bootstrapping will use a double check locking singleton pattern with Bootstrapped to see if a bootstrap process has occured. Areas that are constantly edited are extracted out into their own registrar classes to reduce the need to edit this class.
Inheritance: IBootstrapper
Afficher le fichier Open project: basicdays/Guidelines Class Usage Examples

Protected Properties

Свойство Type Description
Bootstrapped bool
Padlock object

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Bootstrap ( ) : IBootstrapper

Call to begin bootstrapping. Can only be run once.

Bootstrapper ( IDependencyRegistrar dependencyRegistrar, ILogger logger ) : System
Dispose ( ) : void

Method Details

Bootstrap() public méthode

Call to begin bootstrapping. Can only be run once.
public Bootstrap ( ) : IBootstrapper
Résultat IBootstrapper

Bootstrapper() public méthode

public Bootstrapper ( IDependencyRegistrar dependencyRegistrar, ILogger logger ) : System
dependencyRegistrar IDependencyRegistrar
logger ILogger
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Property Details

Bootstrapped protected_oe static_oe property

Marks whether or not bootstrapping has taken place.
protected static bool Bootstrapped
Résultat bool

Padlock protected_oe static_oe property

protected static object Padlock
Résultat object