Class SystemExtensionFactory
Factory for creating system extensions and releasing used objects after creation
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class SystemExtensionFactory
Methods
CreateExtension<T>(string)
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 ComWrapper<T> CreateExtension<T>(string extensionTypeId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | extensionTypeId | Unique identifier of extension |
Returns
| Type | Description |
|---|---|
| ComWrapper<T> | Instance of extension |
Type Parameters
| Name | Description |
|---|---|
| T | Type, which extension should be casted to |
GetGeomFile()
Get geometry file factory singleton
Declaration
public static ComWrapper<ISTGeomFiler> GetGeomFile()
Returns
| Type | Description |
|---|---|
| ComWrapper<ISTGeomFiler> |
GetPathsHelper()
Get singleton helper for paths operations
Declaration
public static ComWrapper<ICamApiPaths> GetPathsHelper()
Returns
| Type | Description |
|---|---|
| ComWrapper<ICamApiPaths> |
GetSingletonExtension<T>(string)
Create instance of extension by type id. All objects are released after creation, except the extension itself.
Declaration
public static ComWrapper<T> GetSingletonExtension<T>(string extensionTypeId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | extensionTypeId | Unique identifier of extension |
Returns
| Type | Description |
|---|---|
| ComWrapper<T> | Instance of extension |
Type Parameters
| Name | Description |
|---|---|
| T | Type, which extension should be casted to |