- add second class for testing generic factory

master
Simon G. 19 hours ago
parent bef63b7078
commit 2f01f21df1
Signed by: SimonG
GPG Key ID: 0B82B964BA536523
  1. 1
      Debug.LightweightIocContainer.FactoryGenerator/SampleInstaller.cs
  2. 7
      Debug.LightweightIocContainer.FactoryGenerator/Samples/Interfaces/IOtherSample2.cs
  3. 9
      Debug.LightweightIocContainer.FactoryGenerator/Samples/OtherSample2.cs

@ -17,5 +17,6 @@ public class SampleInstaller : IIocInstaller
{
registration.Add<ISampleClass, SampleClass>().WithGeneratedFactory<ISampleClassFactory>();
registration.Add<IOtherSample, OtherSample>().WithGeneratedFactory<IGenericSampleFactory<IOtherSample>>();
registration.Add<IOtherSample2, OtherSample2>().WithGeneratedFactory<IGenericSampleFactory<IOtherSample2>>();
}
}

@ -0,0 +1,7 @@
// Author: Simon.Gockner
// Created: 2025-12-05
// Copyright(c) 2025 SimonG. All Rights Reserved.
namespace Debug.LightweightIocContainer.FactoryGenerator.Samples.Interfaces;
public interface IOtherSample2 : IOtherSample;

@ -0,0 +1,9 @@
// Author: Simon.Gockner
// Created: 2025-12-05
// Copyright(c) 2025 SimonG. All Rights Reserved.
using Debug.LightweightIocContainer.FactoryGenerator.Samples.Interfaces;
namespace Debug.LightweightIocContainer.FactoryGenerator.Samples;
public class OtherSample2 : IOtherSample2;
Loading…
Cancel
Save