- add lifestyles

pull/32/head
Simon Gockner 7 years ago
parent d5b1db6173
commit 31419c65ce
  1. 26
      LightweightIocContainer/Lifestyle.cs

@ -0,0 +1,26 @@
// 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="IDefaultRegistration{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
//TODO: Add Lifestyle.Multiton
}
}
Loading…
Cancel
Save