Interface ITerminologyProviderFactory
This interface defines a Terminology Provider Factory class that can be used as a plug-in based on the Sdl.Core.PluginFramework Extensions API
Namespace: Sdl.Terminology.TerminologyProvider.Core
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public interface ITerminologyProviderFactory
Remarks
Implementations of this class should be marked up with a TerminologyProviderFactoryAttribute extension attribute in order for the factory to be available.
Methods
CreateTerminologyProvider(Uri, ITerminologyProviderCredentialStore)
Creates an instance of the terminology provider defined by the specified URI.
Declaration
ITerminologyProvider CreateTerminologyProvider(Uri terminologyProviderUri, ITerminologyProviderCredentialStore credentials)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | terminologyProviderUri | A URI that identifies the translation provider to create. |
| ITerminologyProviderCredentialStore | credentials | A credential store object that can be used to retrieve credentials required for this terminology provider. |
Returns
| Type | Description |
|---|---|
| ITerminologyProvider | A new terminology provider object, ready to be used. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
| ArgumentException | Thrown if |
SupportsTerminologyProviderUri(Uri)
Returns true if this factory supports the specified URI.
Declaration
bool SupportsTerminologyProviderUri(Uri terminologyProviderUri)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | terminologyProviderUri | The Uri. |
Returns
| Type | Description |
|---|---|
| Boolean | True if this factory supports the specified URI. |