C# Class Ninject.Extensions.ContextPreservation.Fakes.FuncFactory

Factory using Func{T} and Lazy{T}
Show file Open project: ninject/Ninject.Extensions.ContextPreservation

Public Methods

Method Description
CreateWeapon ( ) : IWeapon

Creates the weapon.

FuncFactory ( Func weaponFactory ) : System

Initializes a new instance of the FuncFactory class.

FuncFactory ( Func weaponFactory, Lazy lazyWeapon ) : System

Initializes a new instance of the FuncFactory class.

GetLazyWeapon ( ) : IWeapon

Gets the lazy weapon.

Method Details

CreateWeapon() public method

Creates the weapon.
public CreateWeapon ( ) : IWeapon
return IWeapon

FuncFactory() public method

Initializes a new instance of the FuncFactory class.
public FuncFactory ( Func weaponFactory ) : System
weaponFactory Func The weapon factory.
return System

FuncFactory() public method

Initializes a new instance of the FuncFactory class.
public FuncFactory ( Func weaponFactory, Lazy lazyWeapon ) : System
weaponFactory Func The weapon factory.
lazyWeapon Lazy The lazy value.
return System

GetLazyWeapon() public method

Gets the lazy weapon.
public GetLazyWeapon ( ) : IWeapon
return IWeapon