A lightweight IOC Container that is powerful enough to do all the things you need it to do.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
854 B

// Author: simon.gockner
// Created: 2019-05-20
// Copyright(c) 2019 SimonG. All Rights Reserved.
using LightweightIocContainer.Interfaces.Registrations;
namespace LightweightIocContainer
{
/// <summary>
/// The Lifestyles that can be used for a <see cref="IRegistrationBase{TInterface}"/>
/// </summary>
public enum Lifestyle
{
/// <summary>
/// A new instance gets created every time an instance is resolved
/// </summary>
Transient,
/// <summary>
/// One instance is created that gets returned every time an instance is resolved
/// </summary>
Singleton,
/// <summary>
/// A new instance gets created if the given scope has no created instance yet. Otherwise the already created instance is used.
/// </summary>
Multiton
}
}