Show / Hide Table of Contents

Class ManagedBrowsingDatabaseExtension

Managed Database Extension.

Inheritance
System.Object
ManagedBrowsingDatabaseExtension
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Gee.External.Browsing.Databases
Assembly: Gee.External.Browsing.dll
Syntax
public static class ManagedBrowsingDatabaseExtension

Methods

ModifyThreatListAsync(IManagedBrowsingDatabase, ThreatList, IEnumerable<String>, IEnumerable<Int32>)

Modify a Threat List Asynchronously.

Declaration
public static Task ModifyThreatListAsync(this IManagedBrowsingDatabase this, ThreatList threatList, IEnumerable<string> threatSha256HashPrefixes, IEnumerable<int> threatIndices)
Parameters
Type Name Description
IManagedBrowsingDatabase this

A IManagedBrowsingDatabase.

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.

Returns
Type Description
System.Threading.Tasks.Task
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 this is disposed.

StoreThreatListAsync(IManagedBrowsingDatabase, ThreatList, IEnumerable<String>)

Store a Threat List Asynchronously.

Declaration
public static Task StoreThreatListAsync(this IManagedBrowsingDatabase this, ThreatList threatList, IEnumerable<string> threatSha256HashPrefixes)
Parameters
Type Name Description
IManagedBrowsingDatabase this

A IManagedBrowsingDatabase.

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.

Returns
Type Description
System.Threading.Tasks.Task
Exceptions
Type Condition
BrowsingDatabaseException

Thrown if a database error occurs.

System.ArgumentNullException

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

System.ObjectDisposedException

Thrown if this is disposed.

Back to top Generated by DocFX