Interface IManagedBrowsingDatabase
Abstract Managed Database.
Inherited Members
Namespace: Gee.External.Browsing.Databases
Assembly: Gee.External.Browsing.dll
Syntax
public interface IManagedBrowsingDatabase : IUnmanagedBrowsingDatabase, IDisposable
Methods
ModifyThreatListAsync(ThreatList, IEnumerable<String>, IEnumerable<Int32>, CancellationToken)
Modify a Threat List Asynchronously.
Declaration
Task ModifyThreatListAsync(ThreatList threatList, IEnumerable<string> threatSha256HashPrefixes, IEnumerable<int> threatIndices, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Threat |
threatList | A Threat |
System. |
threatSha256HashPrefixes | A collection of SHA256 hash prefixes, formatted as hexadecimal encoded strings, identifying the threats
associated with |
System. |
threatIndices | A collection of zero-based indices identifying the threats associated with the lexicographically sorted
|
System. |
cancellationToken | A cancellation token to cancel the asynchronous operation with. |
Returns
Type | Description |
---|---|
System. |
A task representing the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
Browsing |
Thrown if a database error occurs. |
System. |
Thrown if |
System. |
Thrown if the object is disposed. |
System. |
Thrown if the asynchronous operation is cancelled. |
StoreThreatListAsync(ThreatList, IEnumerable<String>, CancellationToken)
Store a Threat List Asynchronously.
Declaration
Task StoreThreatListAsync(ThreatList threatList, IEnumerable<string> threatSha256HashPrefixes, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Threat |
threatList | A Threat |
System. |
threatSha256HashPrefixes | A collection of SHA256 hash prefixes, formatted as hexadecimal encoded strings, identifying the threats
associated with |
System. |
cancellationToken | A cancellation token to cancel the asynchronous operation with. |
Returns
Type | Description |
---|---|
System. |
A task representing the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
Browsing |
Thrown if a database error occurs. |
System. |
Thrown if |
System. |
Thrown if the object is disposed. |
System. |
Thrown if the asynchronous operation is cancelled. |