Class UnmanagedBrowsingServiceBuilder
Unmanaged Service Builder.
Inheritance
Inherited Members
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 |
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 |
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 |