Skip to content

Commit d7256ef

Browse files
BADF00Dfgreinacher
authored andcommitted
Make IFileSystemWatcher derive from IDisposable (#479)
Fixes #469
1 parent b91e44d commit d7256ef

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

System.IO.Abstractions.TestingHelpers.Tests/MockFileSystemTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public void MockFileSystem_GetFiles_ThrowsArgumentExceptionForInvalidCharacters(
321321
const string path = @"c:\";
322322
var fileSystem = new MockFileSystem();
323323
fileSystem.AddDirectory(XFS.Path(path));
324-
324+
325325
// Act
326326
TestDelegate getFilesWithInvalidCharacterInPath = () => fileSystem.Directory.GetFiles($"{path}{'\0'}.txt");
327327

System.IO.Abstractions/FileSystemWatcherBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace System.IO.Abstractions
66
{
77
/// <inheritdoc cref="FileSystemWatcher"/>
88
[Serializable]
9-
public abstract class FileSystemWatcherBase : IDisposable, IFileSystemWatcher
9+
public abstract class FileSystemWatcherBase : IFileSystemWatcher
1010
{
1111
/// <inheritdoc cref="FileSystemWatcher.IncludeSubdirectories"/>
1212
public abstract bool IncludeSubdirectories { get; set; }

System.IO.Abstractions/IFileSystemWatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace System.IO.Abstractions
66
{
7-
public interface IFileSystemWatcher
7+
public interface IFileSystemWatcher : IDisposable
88
{
99
/// <inheritdoc cref="FileSystemWatcher.IncludeSubdirectories"/>
1010
bool IncludeSubdirectories { get; set; }

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "4.2",
3+
"version": "5.0",
44
"assemblyVersion": {
55
"precision": "major"
66
},
@@ -12,4 +12,4 @@
1212
"enabled": true
1313
}
1414
}
15-
}
15+
}

0 commit comments

Comments
 (0)