blob: 2a83a98435aeaa76c5b1b9d0be554f7beab201d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using PKISharp.WACS.Plugins.Base.Options;
using PKISharp.WACS.Plugins.Interfaces;
using PKISharp.WACS.Services;
namespace PKISharp.WACS.Plugins.ValidationPlugins
{
internal abstract class HttpValidationOptions<T> : ValidationPluginOptions<T> where T : IValidationPlugin
{
public string? Path { get; set; }
public bool? CopyWebConfig { get; set; }
public HttpValidationOptions() { }
public HttpValidationOptions(HttpValidationOptions<T> source)
{
Path = source.Path;
CopyWebConfig = source.CopyWebConfig;
}
public override void Show(IInputService input)
{
base.Show(input);
if (!string.IsNullOrEmpty(Path))
{
input.Show("Path", Path, level: 1);
}
if (CopyWebConfig == true)
{
input.Show("Web.config", "Yes", level: 1);
}
}
}
}
|