-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildFileChange.cs
More file actions
51 lines (45 loc) · 1.58 KB
/
BuildFileChange.cs
File metadata and controls
51 lines (45 loc) · 1.58 KB
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
// -----------------------------------------------------------------------
// <copyright file="BuildFileChange.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
using System.IO;
namespace NLB
{
/// <summary>
/// A build file change.
/// </summary>
internal class BuildFileChange
{
internal WatcherChangeTypes ChangeType;
internal string FullPath;
internal string OldFullPath;
/// <summary>
/// Constructor.
/// </summary>
/// <param name="e">File system event information.</param>
internal BuildFileChange(FileSystemEventArgs e) : this(e.ChangeType, e.FullPath, null)
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="e">Renamed event information.</param>
internal BuildFileChange(RenamedEventArgs e)
: this(e.ChangeType, e.FullPath, e.OldFullPath)
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="changeType"> Type of the change.</param>
/// <param name="fullPath"> Full pathname of the file.</param>
/// <param name="oldFullPath">Full pathname of the old file.</param>
internal BuildFileChange(WatcherChangeTypes changeType, string fullPath, string oldFullPath)
{
ChangeType = changeType;
FullPath = fullPath;
OldFullPath = oldFullPath;
}
}
}