- add samle classes

pull/62/head
Simon G. 5 days ago
parent 17bd0fad08
commit e7e347a477
Signed by: SimonG
GPG Key ID: 0B82B964BA536523
  1. 13
      Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs
  2. 17
      Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.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();
}

@ -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<ISampleClass, SampleClass>().WithGeneratedFactory<ISampleClassFactory>();
}
}
Loading…
Cancel
Save