Munq.Registration.WithLifetimeManager C# (CSharp) Method

WithLifetimeManager() public method

public WithLifetimeManager ( ILifetimeManager manager ) : IRegistration
manager ILifetimeManager
return IRegistration
        public IRegistration WithLifetimeManager(ILifetimeManager manager)
        {
            LifetimeManager = manager;
            return this;
        }

Usage Example

Ejemplo n.º 1
0
        private IRegistration RegisterOpenType(string name, Type tType, Type tImpl)
        {
            var entry = new Registration(this, name, tType, tImpl);

            entry.WithLifetimeManager(DefaultLifetimeManager);
            opentypeRegistry.Add(entry);
            return(entry);
        }
All Usage Examples Of Munq.Registration::WithLifetimeManager