Show / Hide Table of Contents

Interface IFactoryLifetimeManager

This interface marks all lifetime managers compatible with RegisterFactory(Type, String, Func<IUnityContainer, Type, String, Object>, IFactoryLifetimeManager) registration.

Namespace: Unity.Lifetime
Assembly: Unity.Abstractions.dll
Syntax
public interface IFactoryLifetimeManager
Remarks

This interface is used for design type validation of registration compatibility. Each registration type only takes lifetime managers compatible with it.

Methods

| Improve this Doc View Source

CreateLifetimePolicy()

Declaration
LifetimeManager CreateLifetimePolicy()
Returns
Type Description
LifetimeManager

Extension Methods

InjectionMatching.Matches(Object, Type)
InjectionMatching.MatchesObject(Object, Type)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2020 .NET Foundation and Contributors. All Rights Reserved