From 31419c65ceaf6d96a802e7402dd745a7412985bc Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Tue, 4 Jun 2019 22:31:52 +0200 Subject: [PATCH] - add lifestyles --- LightweightIocContainer/Lifestyle.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 LightweightIocContainer/Lifestyle.cs diff --git a/LightweightIocContainer/Lifestyle.cs b/LightweightIocContainer/Lifestyle.cs new file mode 100644 index 0000000..4582a92 --- /dev/null +++ b/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 +{ + /// + /// The Lifestyles that can be used for a + /// + public enum Lifestyle + { + /// + /// A new instance gets created every time an instance is resolved + /// + Transient, + + /// + /// One instance is created that gets returned every time an instance is resolved + /// + Singleton + + //TODO: Add Lifestyle.Multiton + } +} \ No newline at end of file