mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-04 00:03:38 +00:00
28 lines
621 B
C#
28 lines
621 B
C#
namespace Core
|
|
{
|
|
internal interface IPluginMetadata
|
|
{
|
|
Dictionary<string, string> Get();
|
|
}
|
|
|
|
public interface IAddMetadata
|
|
{
|
|
void Add(string key, string value);
|
|
}
|
|
|
|
internal class PluginMetadata : IPluginMetadata, IAddMetadata
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|