Search Results for

    Show / Hide Table of Contents

    Class AICompanionFactoryAttribute

    Attribute used to mark classes as AI Companion Factory extensions.

    Inheritance
    Object
    AICompanionFactoryAttribute
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.AICompanion
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class AICompanionFactoryAttribute : ExtensionAttribute
    Remarks

    This attribute is applied to classes that implement IAICompanionFactory, enabling them to be discovered and validated as extension points by the plugin framework.

    Constructors

    AICompanionFactoryAttribute()

    Declaration
    public AICompanionFactoryAttribute()

    Methods

    Validate(IExtensionAttributeInfo, IExtensionValidationContext)

    Validates an extension targeting this extension point. This method is called by the framework while generating the plug-in manifest. Ensures that the target class implements IAICompanionFactory.

    Declaration
    public override void Validate(IExtensionAttributeInfo info, IExtensionValidationContext context)
    Parameters
    Type Name Description
    IExtensionAttributeInfo info

    Information about the extension.

    IExtensionValidationContext context

    Provides functionality to validate extensions targeting the extension point and report warning or error messages.

    In this article
    Back to top Generated by DocFX