mirror of
https://github.com/vacp2p/cs-codex-dist-tests.git
synced 2025-02-23 15:58:21 +00:00
19 lines
387 B
C#
19 lines
387 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 => c.GetType() == typeof(T));
|
|
return (T)match;
|
|
}
|
|
}
|
|
}
|