Show / Hide Table of Contents

Interface IManagedBrowsingDatabase

Abstract Managed Database.

Inherited Members
IUnmanagedBrowsingDatabase.FindThreatListsAsync(String, CancellationToken)
IUnmanagedBrowsingDatabase.GetThreatListAsync(ThreatListDescriptor, CancellationToken)
IUnmanagedBrowsingDatabase.GetThreatListsAsync(CancellationToken)
IUnmanagedBrowsingDatabase.GetThreatsAsync(ThreatListDescriptor, CancellationToken)
System.IDisposable.Dispose()
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
ThreatList threatList

A ThreatList to modify.

System.Collections.Generic.IEnumerable<System.String> threatSha256HashPrefixes

A collection of SHA256 hash prefixes, formatted as hexadecimal encoded strings, identifying the threats associated with threatList and should be stored.

System.Collections.Generic.IEnumerable<System.Int32> threatIndices

A collection of zero-based indices identifying the threats associated with the lexicographically sorted threatList and should be removed.

System.Threading.CancellationToken cancellationToken

A cancellation token to cancel the asynchronous operation with.

Returns
Type Description
System.Threading.Tasks.Task

A task representing the asynchronous operation.

Exceptions
Type Condition
BrowsingDatabaseException

Thrown if a database error occurs.

System.ArgumentNullException

Thrown if threatList is a null reference, or if threatSha256HashPrefixes is a null reference, or if threatIndices is a null reference.

System.ObjectDisposedException

Thrown if the object is disposed.

System.OperationCanceledException

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
ThreatList threatList

A ThreatList to store.

System.Collections.Generic.IEnumerable<System.String> threatSha256HashPrefixes

A collection of SHA256 hash prefixes, formatted as hexadecimal encoded strings, identifying the threats associated with threatList and should be stored.

System.Threading.CancellationToken cancellationToken

A cancellation token to cancel the asynchronous operation with.

Returns
Type Description
System.Threading.Tasks.Task

A task representing the asynchronous operation.

Exceptions
Type Condition
BrowsingDatabaseException

Thrown if a database error occurs.

System.ArgumentNullException

Thrown if threatList is a null reference, or if threatSha256HashPrefixes is a null reference.

System.ObjectDisposedException

Thrown if the object is disposed.

System.OperationCanceledException

Thrown if the asynchronous operation is cancelled.

Extension Methods

ManagedBrowsingDatabaseExtension.ModifyThreatListAsync(IManagedBrowsingDatabase, ThreatList, IEnumerable<String>, IEnumerable<Int32>)
ManagedBrowsingDatabaseExtension.StoreThreatListAsync(IManagedBrowsingDatabase, ThreatList, IEnumerable<String>)
UnmanagedBrowsingDatabaseExtension.ComputeThreatListChecksumAsync(IUnmanagedBrowsingDatabase, ThreatListDescriptor)
UnmanagedBrowsingDatabaseExtension.ComputeThreatListChecksumAsync(IUnmanagedBrowsingDatabase, ThreatListDescriptor, CancellationToken)
UnmanagedBrowsingDatabaseExtension.FindThreatListsAsync(IUnmanagedBrowsingDatabase, String)
UnmanagedBrowsingDatabaseExtension.GetThreatListAsync(IUnmanagedBrowsingDatabase, ThreatListDescriptor)
UnmanagedBrowsingDatabaseExtension.GetThreatListsAsync(IUnmanagedBrowsingDatabase)
UnmanagedBrowsingDatabaseExtension.GetThreatListsAsync(IUnmanagedBrowsingDatabase, IEnumerable<ThreatListDescriptor>)
UnmanagedBrowsingDatabaseExtension.GetThreatsAsync(IUnmanagedBrowsingDatabase, ThreatListDescriptor)
UnmanagedBrowsingDatabaseExtension.LookupAsync(IUnmanagedBrowsingDatabase, Url)
Back to top Generated by DocFX