Class TranslationProviderFactoryAttribute
Extension attribute for registering a translation provider factory that supports a specific types of translation providers.
Inheritance
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class TranslationProviderFactoryAttribute : ExtensionAttribute
Remarks
Use this extension attribute to mark up implementations of ITranslation
The registered translation provider factories are used to instantiate translation providers when calling
Create
Constructors
TranslationProviderFactoryAttribute()
Extension attribute for registering a translation provider factory that supports a specific types of translation providers.
Declaration
public TranslationProviderFactoryAttribute()
Remarks
Use this extension attribute to mark up implementations of ITranslation
The registered translation provider factories are used to instantiate translation providers when calling
Create
Methods
Validate(IExtensionAttributeInfo, IExtensionValidationContext)
Validates an extension targeting this extension point. This method is called by the framework while generating the plug-in manifest.
Declaration
public override void Validate(IExtensionAttributeInfo info, IExtensionValidationContext context)
Parameters
Type | Name | Description |
---|---|---|
IExtension |
info | Information about the extension. |
IExtension |
context | Provides functionality to validate extensions targeting the extension point and report warning or error messages |
Remarks
Use this extension attribute to mark up implementations of ITranslation
The registered translation provider factories are used to instantiate translation providers when calling
Create