You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
678 B
21 lines
678 B
// 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();
|
|
T Create<T>() where T : ISampleClass;
|
|
Task<ISampleClass> CreateAsync();
|
|
|
|
ISampleClass Create(string name);
|
|
T Create<T, U, V>(U param1, V param2) where T : ISampleClass where U : class, new() where V : struct;
|
|
Task<T> CreateAsync<T, U>(U parameter) where T : ISampleClass where U : class;
|
|
|
|
void ClearMultitonInstance<T>() where T : ISampleClass;
|
|
} |