Class SystemExtensionFactory
Factory for creating system extensions and releasing used objects after creation
Inheritance
object
SystemExtensionFactory
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class SystemExtensionFactory : Object
Methods
CreateExtension<T>(string, IExtensionInfo?)
Create instance of extension by type id. All objects are released after creation, except the extension itself. Created object will be disposable, so it will be released after using
Declaration
public static ApiComObject<T> CreateExtension<T>(string extensionTypeId, IExtensionInfo? info)
Parameters
Type | Name | Description |
---|---|---|
string | extensionTypeId | Unique identifier of extension |
IExtensionInfo | info | Object to get extension manager reference |
Returns
Type | Description |
---|---|
ApiComObject<T> | Instance of extension |
Type Parameters
Name | Description |
---|---|
T | Type, which extension should be casted to |
GetSingletonExtension<T>(string, IExtensionInfo?)
Create instance of extension by type id. All objects are released after creation, except the extension itself.
Declaration
public static ApiComObject<T> GetSingletonExtension<T>(string extensionTypeId, IExtensionInfo? info)
Parameters
Type | Name | Description |
---|---|---|
string | extensionTypeId | Unique identifier of extension |
IExtensionInfo | info | Object to get extension manager reference |
Returns
Type | Description |
---|---|
ApiComObject<T> | Instance of extension |
Type Parameters
Name | Description |
---|---|
T | Type, which extension should be casted to |