Show / Hide Table of Contents

Class ManagedBrowsingService

Managed Service.

Inheritance
System.Object
BaseBrowsingService
ManagedBrowsingService
Implements
IBrowsingService
System.IDisposable
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.Services
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class ManagedBrowsingService : BaseBrowsingService, IBrowsingService, IDisposable

Methods

Build()

Build a Managed Service.

Declaration
public static ManagedBrowsingServiceBuilder Build()
Returns
Type Description
ManagedBrowsingServiceBuilder

A ManagedBrowsingServiceBuilder to build a managed service with.

Dispose()

Dispose Object.

Declaration
public override void Dispose()
Overrides
BaseBrowsingService.Dispose()

LookupAsync(Url, CancellationToken)

Lookup a URL.

Declaration
public override Task<UrlLookupResult> LookupAsync(Url url, CancellationToken cancellationToken)
Parameters
Type Name Description
Url 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 url is Safe or Unsafe.

Overrides
BaseBrowsingService.LookupAsync(Url, CancellationToken)
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 url is a null reference.

System.ObjectDisposedException

Thrown if the object is disposed.

System.OperationCanceledException

Thrown if the asynchronous operation is cancelled.

Events

ThreatListSynchronizationCompleted

Threat List Synchronization Completed Event.

Declaration
public event Action<ThreatListSynchronizationCompletedEventArgs> ThreatListSynchronizationCompleted
Event Type
Type Description
System.Action<ThreatListSynchronizationCompletedEventArgs>

ThreatListSynchronizationFailed

Threat List Synchronization Failed Event.

Declaration
public event Action<ThreatListSynchronizationFailedEventArgs> ThreatListSynchronizationFailed
Event Type
Type Description
System.Action<ThreatListSynchronizationFailedEventArgs>

Implements

IBrowsingService
System.IDisposable

Extension Methods

BrowsingServiceExtension.LookupAsync(IBrowsingService, String)
BrowsingServiceExtension.LookupAsync(IBrowsingService, String, CancellationToken)
BrowsingServiceExtension.LookupAsync(IBrowsingService, Url)
Back to top Generated by DocFX