From e7e347a477afe462a2632cb03a30db1845240a94 Mon Sep 17 00:00:00 2001 From: "Simon G." Date: Mon, 1 Dec 2025 13:52:59 +0100 Subject: [PATCH] - add samle classes --- .../SampleClass.cs | 13 +++++++++++++ .../SampleInstaller.cs | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs create mode 100644 Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs diff --git a/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs b/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs new file mode 100644 index 0000000..57ee8cf --- /dev/null +++ b/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs @@ -0,0 +1,13 @@ +// Author: Simon.Gockner +// Created: 2025-12-01 +// Copyright(c) 2025 SimonG. All Rights Reserved. + +namespace Debug.LightweightIocContainer.FactoryGenerator; + +public class SampleClass : ISampleClass; +public interface ISampleClass; + +public interface ISampleClassFactory +{ + ISampleClass Create(); +} \ No newline at end of file diff --git a/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs b/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs new file mode 100644 index 0000000..3f63134 --- /dev/null +++ b/Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs @@ -0,0 +1,17 @@ +// Author: Simon.Gockner +// Created: 2025-12-01 +// Copyright(c) 2025 SimonG. All Rights Reserved. + +using LightweightIocContainer.FactoryGenerator; +using LightweightIocContainer.Interfaces.Installers; +using LightweightIocContainer.Interfaces.Registrations; + +namespace Debug.LightweightIocContainer.FactoryGenerator; + +public class SampleInstaller : IIocInstaller +{ + public void Install(IRegistrationCollector registration) + { + registration.Add().WithGeneratedFactory(); + } +} \ No newline at end of file