mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 03:58:45 +08:00
- 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
22 lines
471 B
C#
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;
|
|
}
|
|
}
|
|
} |