public GpgPassCredentialStore(IFileSystem fileSystem, IGpg gpg, string storeRoot, string @namespace = null) : base(fileSystem, storeRoot, @namespace) { PlatformUtils.EnsurePosix(); EnsureArgument.NotNull(gpg, nameof(gpg)); _gpg = gpg; }
public GpgMessenger(IGpg gpg, IPgpRegexHelper pgpHelper, IMessenger messenger, IGpgMessengerConfiguration configuration, ITwoWayEncryption encryption, IKeyListParser keyListParser) { this.gpg = gpg; this.pgpHelper = pgpHelper; this.messenger = messenger; this.configuration = configuration; this.encryption = encryption; this.keyListParser = keyListParser; messenger.MessageReceived += Messenger_MessageReceived; }
public LinuxCredentialStore(IFileSystem fileSystem, ISettings settings, ISessionManager sessionManager, IGpg gpg, IEnvironment environment) { EnsureArgument.NotNull(fileSystem, nameof(fileSystem)); EnsureArgument.NotNull(settings, nameof(settings)); EnsureArgument.NotNull(sessionManager, nameof(sessionManager)); EnsureArgument.NotNull(gpg, nameof(gpg)); EnsureArgument.NotNull(environment, nameof(environment)); _fileSystem = fileSystem; _settings = settings; _sessionManager = sessionManager; _gpg = gpg; _environment = environment; }