Skip to content

Commit e759c4d

Browse files
committed
fix: separate generic antimalware scanner interface
1 parent 6c1fc1b commit e759c4d

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/ByteGuard.FileValidator/Scanners/IAntimalwareScanner.cs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ namespace ByteGuard.FileValidator.Scanners;
33
/// <summary>
44
/// An abstraction for antimalware scanners.
55
/// </summary>
6-
/// <typeparam name="TOptions">
7-
/// The type of options used to configure the antimalware scanner.
8-
/// Implementers should ensure that a constructor with the type exists.
9-
/// </typeparam>
10-
public interface IAntimalwareScanner<TOptions>
6+
public interface IAntimalwareScanner
117
{
128
/// <summary>
139
/// Whether the given file is clean from malicious content based on an antimalware scanner.
@@ -21,3 +17,15 @@ public interface IAntimalwareScanner<TOptions>
2117
/// <returns><c>true</c> if the antimalware scanner did not find anything, <c>false</c> otherwise.</returns>
2218
public bool IsClean(Stream contentStream, string fileName);
2319
}
20+
21+
/// <summary>
22+
/// An abstraction for antimalware scanners.
23+
/// </summary>
24+
/// <typeparam name="TOptions">
25+
/// The type of options used to configure the antimalware scanner.
26+
/// Implementers should ensure that a constructor with the type exists.
27+
/// </typeparam>
28+
public interface IAntimalwareScanner<TOptions> : IAntimalwareScanner
29+
where TOptions : class
30+
{
31+
}

0 commit comments

Comments
 (0)