C# 클래스 Munq.LifetimeManagers.AlwaysNewLifetime

A Lifetime Manager that always returns a new instance.

Setting the IocContainer's or Registration's lifetime manager to null is equivalent to setting it to an instance of AlwaysNewLifetime. This is the default lifetime manager for the IocContainer.

The one instance can be used for all registrations.
상속: ILifetimeManager
파일 보기 프로젝트 열기: volkanceylan/Serenity

공개 메소드들

메소드 설명
GetInstance ( IRegistration registration ) : object

Always creates a new instance.

InvalidateInstanceCache ( IRegistration registration ) : void

Does nothing as this lifetime manager does not cache.

메소드 상세

GetInstance() 공개 메소드

Always creates a new instance.
public GetInstance ( IRegistration registration ) : object
registration IRegistration The creator (registration) that can create an instance
리턴 object

InvalidateInstanceCache() 공개 메소드

Does nothing as this lifetime manager does not cache.
public InvalidateInstanceCache ( IRegistration registration ) : void
registration IRegistration The registration.
리턴 void