cs-codex-dist-tests/Framework/Core/PluginMetadata.cs

28 lines
621 B
C#
Raw Normal View History

2023-09-13 14:06:05 +00:00
namespace Core
{
2023-09-14 13:40:15 +00:00
internal interface IPluginMetadata
2023-09-13 14:06:05 +00:00
{
Dictionary<string, string> Get();
}
public interface IAddMetadata
{
void Add(string key, string value);
}
2023-09-14 13:40:15 +00:00
internal class PluginMetadata : IPluginMetadata, IAddMetadata
2023-09-13 14:06:05 +00:00
{
private readonly Dictionary<string, string> metadata = new Dictionary<string, string>();
public void Add(string key, string value)
{
metadata.Add(key, value);
}
public Dictionary<string, string> Get()
{
return new Dictionary<string, string>(metadata);
}
}
}