-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBackgroundCopyNotifyCommandLine.cs
75 lines (59 loc) · 2.12 KB
/
BackgroundCopyNotifyCommandLine.cs
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// @(#) BackgroundCopyNotifyCommandLine.cs
//
// Project: usis.Net.Bits
// System: Microsoft Visual Studio 2022
// Author: Udo Schäfer
//
// Copyright (c) 2017-2024 usis GmbH. All rights reserved.
namespace usis.Net.Bits
{
// -------------------------------------
// BackgroundCopyNotifyCommandLine class
// -------------------------------------
/// <summary>
/// Specifies a program to execute when the job enters the error or transferred state.
/// </summary>
/// <remarks>
/// Initializes a new instance of the <see cref="BackgroundCopyNotifyCommandLine"/> class.
/// </remarks>
/// <param name="program">The program to execute.</param>
/// <param name="parameters">The parameters of the program.</param>
public sealed class BackgroundCopyNotifyCommandLine(string program, string? parameters)
{
#region properties
// ----------------
// Program property
// ----------------
/// <summary>
/// Gets the program to execute.
/// </summary>
/// <value>
/// The program to execute.
/// </value>
public string? Program { get; } = program;
// -------------------
// Parameters property
// -------------------
/// <summary>
/// Gets the parameters of the program.
/// </summary>
/// <value>
/// The parameters of the program.
/// </value>
public string? Parameters { get; } = parameters;
#endregion
#region construction
// ------------
// construction
// ------------
/// <summary>
/// Initializes a new instance of the <see cref="BackgroundCopyNotifyCommandLine"/> class
/// with the specified program to execute.
/// </summary>
/// <param name="program">The program to execute.</param>
public BackgroundCopyNotifyCommandLine(string program) : this(program, null) { }
#endregion
}
}
// eof "BackgroundCopyNotifyCommandLine.cs"