public static BeatPulseContext AddSftpLiveness(this BeatPulseContext context, Action <SftpLivenessOptions> options,
                                                       string name = nameof(SftpLiveness), string defaultPath = "sftp")
        {
            return(context.AddLiveness(name, setup =>
            {
                setup.UsePath(defaultPath);

                var sftpLivenessOptions = new SftpLivenessOptions();
                options?.Invoke(sftpLivenessOptions);

                setup.UseLiveness(new SftpLiveness(sftpLivenessOptions));
            }));
        }
Example #2
0
 public SftpLiveness(SftpLivenessOptions options, ILogger <SftpLiveness> logger = null)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     _logger  = logger;
 }
Example #3
0
 public SftpLiveness(SftpLivenessOptions options)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
 }