IAIExtensionsContainer.Register<TExtension>(Type, Func<IServiceProvider, TExtension>, String) Method
Registers an AI extension of type TExtension with the specified key and optional name.
Namespace: DevExpress.AIIntegration
Assembly: DevExpress.AIIntegration.v25.2.dll
NuGet Package: DevExpress.AIIntegration
Declaration
IDisposable Register<TExtension>(
Type key,
Func<IServiceProvider, TExtension> factory,
string name = null
)
where TExtension : IAIExtension
Parameters
| Name | Type | Description |
|---|---|---|
| key | Type | The type of the registered extension. |
| factory | Func<IServiceProvider, TExtension> | A factory method that creates the extension. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| name | String | null | A unique name of the extension. |
Type Parameters
| Name | Description |
|---|---|
| TExtension | The type of the registered extension. |
Returns
| Type | Description |
|---|---|
| IDisposable | The registered extension. |
See Also