Class BrowsingClientExtension
Client Extension.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Clients
Assembly: Gee.External.Browsing.dll
Syntax
public static class BrowsingClientExtension
Methods
FindFullHashesAsync(IBrowsingClient, FullHashRequest)
Find Full Hashes Asynchronously.
Declaration
public static Task<FullHashResponse> FindFullHashesAsync(this IBrowsingClient this, FullHashRequest request)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
FullHashRequest | request |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FullHashResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
FindFullHashesAsync(IBrowsingClient, String, IEnumerable<ThreatList>)
Find Full Hashes Asynchronously.
Declaration
public static Task<FullHashResponse> FindFullHashesAsync(this IBrowsingClient this, string sha256HashPrefix, IEnumerable<ThreatList> threatLists)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
System.String | sha256HashPrefix | A SHA256 hash prefix, formatted as a hexadecimal encoded string, identifying a threat to query. |
System.Collections.Generic.IEnumerable<ThreatList> | threatLists | A collection of ThreatList the threat identified by |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FullHashResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if the |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
FindFullHashesAsync(IBrowsingClient, String, IEnumerable<ThreatList>, CancellationToken)
Find Full Hashes Asynchronously.
Declaration
public static Task<FullHashResponse> FindFullHashesAsync(this IBrowsingClient this, string sha256HashPrefix, IEnumerable<ThreatList> threatLists, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
System.String | sha256HashPrefix | A SHA256 hash prefix, formatted as a hexadecimal encoded string, identifying a threat to query. |
System.Collections.Generic.IEnumerable<ThreatList> | threatLists | A collection of ThreatList the threat identified by |
System.Threading.CancellationToken | cancellationToken | A cancellation token to cancel the asynchronous operation with. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FullHashResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if the |
System.OperationCanceledException | Thrown if the asynchronous operation is cancelled. |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
GetThreatListDescriptorsAsync(IBrowsingClient)
Get Threat List Descriptors Asynchronously.
Declaration
public static Task<IEnumerable<ThreatListDescriptor>> GetThreatListDescriptorsAsync(this IBrowsingClient this)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ThreatListDescriptor>> | A collection of ThreatListDescriptor. |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
GetThreatListUpdatesAsync(IBrowsingClient, ThreatListUpdateRequest)
Get Threat List Updates Asynchronously.
Declaration
public static Task<ThreatListUpdateResponse> GetThreatListUpdatesAsync(this IBrowsingClient this, ThreatListUpdateRequest request)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
ThreatListUpdateRequest | request |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ThreatListUpdateResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
GetThreatListUpdatesAsync(IBrowsingClient, ThreatList, ThreatListUpdateConstraints)
Get Threat List Updates Asynchronously.
Declaration
public static Task<ThreatListUpdateResponse> GetThreatListUpdatesAsync(this IBrowsingClient this, ThreatList threatList, ThreatListUpdateConstraints updateConstraints)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
ThreatList | threatList | A ThreatList to retrieve. |
ThreatListUpdateConstraints | updateConstraints | The ThreatListUpdateConstraints to apply when |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ThreatListUpdateResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if the |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
GetThreatListUpdatesAsync(IBrowsingClient, ThreatList, ThreatListUpdateConstraints, CancellationToken)
Get Threat List Updates Asynchronously.
Declaration
public static Task<ThreatListUpdateResponse> GetThreatListUpdatesAsync(this IBrowsingClient this, ThreatList threatList, ThreatListUpdateConstraints updateConstraints, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
ThreatList | threatList | A ThreatList to retrieve. |
ThreatListUpdateConstraints | updateConstraints | The ThreatListUpdateConstraints to apply when |
System.Threading.CancellationToken | cancellationToken | A cancellation token to cancel the asynchronous operation with. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ThreatListUpdateResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if the |
System.OperationCanceledException | Thrown if the asynchronous operation is cancelled. |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
GetThreatListUpdatesAsync(IBrowsingClient, IEnumerable<ThreatList>)
Get Threat List Updates Asynchronously.
Declaration
public static Task<ThreatListUpdateResponse> GetThreatListUpdatesAsync(this IBrowsingClient this, IEnumerable<ThreatList> threatLists)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
System.Collections.Generic.IEnumerable<ThreatList> | threatLists | A collection of ThreatList to retrieve. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ThreatListUpdateResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if the |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |
GetThreatListUpdatesAsync(IBrowsingClient, IEnumerable<ThreatList>, CancellationToken)
Get Threat List Updates Asynchronously.
Declaration
public static Task<ThreatListUpdateResponse> GetThreatListUpdatesAsync(this IBrowsingClient this, IEnumerable<ThreatList> threatLists, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingClient | this | |
System.Collections.Generic.IEnumerable<ThreatList> | threatLists | A collection of ThreatList to retrieve. |
System.Threading.CancellationToken | cancellationToken | A cancellation token to cancel the asynchronous operation with. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ThreatListUpdateResponse> |
Exceptions
Type | Condition |
---|---|
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if the |
System.OperationCanceledException | Thrown if the asynchronous operation is cancelled. |
System.TimeoutException | Thrown if communication with the Google Safe Browsing API times out. |