Show / Hide Table of Contents

Class UnmanagedBrowsingServiceBuilder

Unmanaged Service Builder.

Inheritance
System.Object
BaseBrowsingServiceBuilder<UnmanagedBrowsingServiceBuilder>
UnmanagedBrowsingServiceBuilder
Inherited Members
BaseBrowsingServiceBuilder<UnmanagedBrowsingServiceBuilder>.SetCache(IBrowsingCache, Boolean)
BaseBrowsingServiceBuilder<UnmanagedBrowsingServiceBuilder>.SetClient(IBrowsingClient, Boolean)
BaseBrowsingServiceBuilder<UnmanagedBrowsingServiceBuilder>.UseHttpClient(String)
BaseBrowsingServiceBuilder<UnmanagedBrowsingServiceBuilder>.UseMemoryCache()
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 UnmanagedBrowsingServiceBuilder : BaseBrowsingServiceBuilder<UnmanagedBrowsingServiceBuilder>

Methods

Build()

Build an Unmanaged Service.

Declaration
public UnmanagedBrowsingService Build()
Returns
Type Description
UnmanagedBrowsingService

An UnmanagedBrowsingService.

SetDatabase(IUnmanagedBrowsingDatabase, Boolean)

Set Database.

Declaration
public UnmanagedBrowsingServiceBuilder SetDatabase(IUnmanagedBrowsingDatabase value, bool ownDatabase)
Parameters
Type Name Description
IUnmanagedBrowsingDatabase value

A IManagedBrowsingDatabase to store the collection of retrieved ThreatList in.

System.Boolean ownDatabase

A boolean flag indicating whether or not the UnmanagedBrowsingService takes ownership of the database and disposes it when the unmanaged service itself is disposed. If the unmanaged service takes ownership of the database and you reference or dispose the database after you create the unmanaged service, the behavior of the unmanaged service and the database is undefined.

Returns
Type Description
UnmanagedBrowsingServiceBuilder

This unmanaged service builder.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if value is a null reference.

UseJsonDatabase(String)

Use a JSON Database.

Declaration
public UnmanagedBrowsingServiceBuilder UseJsonDatabase(string databaseFilePath)
Parameters
Type Name Description
System.String databaseFilePath

An absolute file path to the database file. If the file does not exist, it will be created.

Returns
Type Description
UnmanagedBrowsingServiceBuilder

This unmanaged service builder.

Remarks

Use a UnmanagedJsonBrowsingDatabase to store threat list updates retrieved from the Google Safe Browsing API. The UnmanagedBrowsingService takes ownership of the JSON database and will dispose it when the unmanaged service itself is disposed.

Exceptions
Type Condition
System.ArgumentNullException

Thrown if databaseFilePath is a null reference.

Back to top Generated by DocFX