Interface IFileStreamSecurityAnalyzer
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public interface IFileStreamSecurityAnalyzer
Methods
View SourceIsConsideredSafe(Stream)
Analyzes whether the file content is considered safe
Declaration
bool IsConsideredSafe(Stream fileStream)
Parameters
Type | Name | Description |
---|---|---|
Stream | fileStream | Needs to be a Read/Write seekable stream |
Returns
Type | Description |
---|---|
System.Boolean | Whether the file is considered safe |
ShouldHandle(Stream)
Indicates whether the analyzer should process the file The implementation should be considerably faster than IsConsideredSafe
Declaration
bool ShouldHandle(Stream fileStream)
Parameters
Type | Name | Description |
---|---|---|
Stream | fileStream |
Returns
Type | Description |
---|---|
System.Boolean |