Пример #1
0
        public WindowsSettings(IEnvironment environment, IGit git, ITrace trace)
            : base(environment, git)
        {
            EnsureArgument.NotNull(trace, nameof(trace));
            _trace = trace;

            PlatformUtils.EnsureWindows();
        }
Пример #2
0
 /// <summary>
 /// Open the Windows Credential Manager vault for the current user.
 /// </summary>
 /// <param name="namespace">Optional namespace to scope credential operations.</param>
 /// <returns>Current user's Credential Manager vault.</returns>
 public WindowsCredentialManager(string @namespace = null)
 {
     PlatformUtils.EnsureWindows();
     _namespace = @namespace;
 }
Пример #3
0
 public WindowsSessionManager()
 {
     PlatformUtils.EnsureWindows();
 }
Пример #4
0
 private WindowsCredentialManager(string @namespace)
 {
     PlatformUtils.EnsureWindows();
     _namespace = @namespace;
 }
Пример #5
0
 public DpapiCredentialStore(IFileSystem fileSystem, string storeRoot, string @namespace = null)
     : base(fileSystem, storeRoot, @namespace)
 {
     PlatformUtils.EnsureWindows();
 }
        public WindowsTerminal(ITrace trace)
        {
            PlatformUtils.EnsureWindows();

            _trace = trace;
        }
Пример #7
0
 private WindowsCredentialManager()
 {
     PlatformUtils.EnsureWindows();
 }