Files
mRemoteNG/mRemoteV1/Config/DataProviders/InMemoryStringDataProvider.cs
David Sparer 8439d6d3aa lots of reworked interfaces around cred repo serialization
- decryptors now expose a property that represents what key they will use for decrypt. this can be used by decorators to properly encapsulate password prompts
- added some basic acceptance tests around cred repos
- added some stubby implementations for IDataProvider and the key provider decorators
2017-04-03 20:09:47 -06:00

22 lines
471 B
C#

namespace mRemoteNG.Config.DataProviders
{
public class InMemoryStringDataProvider : IDataProvider<string>
{
private string _contents;
public InMemoryStringDataProvider(string initialContents = "")
{
_contents = initialContents;
}
public string Load()
{
return _contents;
}
public void Save(string contents)
{
_contents = contents;
}
}
}