Files
sms-task-two/src/Sms.Environment/IEnvironmentVariableStore.cs

23 lines
532 B
C#

namespace Sms.Environment;
public interface IEnvironmentVariableStore
{
string? Get(string name);
string? GetUserPersistedValue(string name);
void Set(string name, string value);
bool Exists(string name);
IReadOnlyDictionary<string, string> GetAll(IEnumerable<string> names);
IReadOnlyDictionary<string, string> GetProcessEnvironment();
IReadOnlyDictionary<string, string> GetUserPersistedEnvironment();
bool IsPersistedInUserStore(string name);
void RemoveFromUserStore(string name);
}