16 lines
471 B
C#
16 lines
471 B
C#
namespace DD.Persistence.Client;
|
|
internal class SetpointConfigStorage : ISetpointConfigStorage
|
|
{
|
|
private readonly Dictionary<Guid, Type> setpointTypeConfigs;
|
|
|
|
public SetpointConfigStorage(Dictionary<Guid, Type>? setpointTypeConfigs)
|
|
{
|
|
this.setpointTypeConfigs = setpointTypeConfigs?? new Dictionary<Guid, Type>();
|
|
}
|
|
|
|
public bool TryGetType(Guid id, out Type type)
|
|
{
|
|
return setpointTypeConfigs.TryGetValue(id, out type);
|
|
}
|
|
}
|