2
0
mirror of synced 2025-01-26 16:30:16 +00:00
2023-04-12 16:12:04 +02:00

19 lines
402 B
C#

namespace KubernetesWorkflow
{
public class StartupConfig
{
private readonly List<object> configs = new List<object>();
public void Add(object config)
{
configs.Add(config);
}
public T Get<T>()
{
var match = configs.Single(c => typeof(T).IsAssignableFrom(c.GetType()));
return (T)match;
}
}
}