Class BrowsingServiceExtension
Browsing Service Extension.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Services
Assembly: Gee.External.Browsing.dll
Syntax
public static class BrowsingServiceExtension
Methods
LookupAsync(IBrowsingService, Url)
Lookup a URL.
Declaration
public static Task<UrlLookupResult> LookupAsync(this IBrowsingService this, Url url)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingService | this | |
Url | url | A Url to lookup. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<UrlLookupResult> | A UrlLookupResult indicating whether |
Exceptions
Type | Condition |
---|---|
BrowsingCacheException | Thrown if a caching error occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
BrowsingDatabaseException | Thrown if a database error occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if |
LookupAsync(IBrowsingService, String)
Lookup a URL.
Declaration
public static Task<UrlLookupResult> LookupAsync(this IBrowsingService this, string url)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingService | this | |
System.String | url | A Url to lookup. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<UrlLookupResult> | A UrlLookupResult indicating whether |
Exceptions
Type | Condition |
---|---|
BrowsingCacheException | Thrown if a caching error occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
BrowsingDatabaseException | Thrown if a database error occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if |
LookupAsync(IBrowsingService, String, CancellationToken)
Lookup a URL.
Declaration
public static Task<UrlLookupResult> LookupAsync(this IBrowsingService this, string url, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IBrowsingService | this | |
System.String | url | A Url to lookup. |
System.Threading.CancellationToken | cancellationToken | A cancellation token to cancel the asynchronous operation with. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<UrlLookupResult> | A UrlLookupResult indicating whether |
Exceptions
Type | Condition |
---|---|
BrowsingCacheException | Thrown if a caching error occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
BrowsingClientException | Thrown if an error communicating with the Google Safe Browsing API occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
BrowsingDatabaseException | Thrown if a database error occurs. If you're not interested in handling this exception, catch BrowsingException instead. |
System.ArgumentNullException | Thrown if |
System.ObjectDisposedException | Thrown if |
System.OperationCanceledException | Thrown if the asynchronous operation is cancelled. |