namespace Umbraco.Cms.Core.Security;
public interface IFileStreamSecurityAnalyzer
{
///
/// Indicates whether the analyzer should process the file
/// The implementation should be considerably faster than IsConsideredSafe
///
///
///
bool ShouldHandle(Stream fileStream);
///
/// Analyzes whether the file content is considered safe
///
/// Needs to be a Read/Write seekable stream
/// Whether the file is considered safe
bool IsConsideredSafe(Stream fileStream);
}