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