C# 클래스 Ninject.Extensions.ContextPreservation.Fakes.FuncFactory

Factory using Func{T} and Lazy{T}
파일 보기 프로젝트 열기: ninject/Ninject.Extensions.ContextPreservation

공개 메소드들

메소드 설명
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.

메소드 상세

CreateWeapon() 공개 메소드

Creates the weapon.
public CreateWeapon ( ) : IWeapon
리턴 IWeapon

FuncFactory() 공개 메소드

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

FuncFactory() 공개 메소드

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.
리턴 System

GetLazyWeapon() 공개 메소드

Gets the lazy weapon.
public GetLazyWeapon ( ) : IWeapon
리턴 IWeapon