From 79642012e67893aa4a86e86de39f4eb741bf7d34 Mon Sep 17 00:00:00 2001 From: "Simon G." Date: Wed, 3 Dec 2025 09:04:58 +0100 Subject: [PATCH] - add methods to test more factory types --- .../SampleClass.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs b/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs index 57ee8cf..7b4b4f7 100644 --- a/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs +++ b/Debug.LightweightIocContainer.FactoryGenerator/SampleClass.cs @@ -10,4 +10,10 @@ public interface ISampleClass; public interface ISampleClassFactory { ISampleClass Create(); + T Create() where T : ISampleClass; + Task CreateAsync(); + + ISampleClass Create(string name); + T Create(U param1, V param2) where T : ISampleClass where U : class, new() where V : struct; + Task CreateAsync(U parameter) where T : ISampleClass where U : class; } \ No newline at end of file