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
Show file Open project: basicdays/Guidelines Class Usage Examples

Protected Properties

Property Type Description
Bootstrapped bool
Padlock object

Private Properties

Property Type Description

Public Methods

Method Description
Bootstrap ( ) : IBootstrapper

Call to begin bootstrapping. Can only be run once.

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

Method Details

Bootstrap() public method

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

Bootstrapper() public method

public Bootstrapper ( IDependencyRegistrar dependencyRegistrar, ILogger logger ) : System
dependencyRegistrar IDependencyRegistrar
logger ILogger
return System

Dispose() public method

public Dispose ( ) : void
return void

Property Details

Bootstrapped protected static property

Marks whether or not bootstrapping has taken place.
protected static bool Bootstrapped
return bool

Padlock protected static property

protected static object Padlock
return object