THYClrAppDomain

Overview

The THYClrAppDomain is a class that responsible for interaction for Application Domains. This class is used internally to control AppDomain for a managed plugins. For more infromation about the AppDomain interaction please use this MSDN article.

Location

 

constructor Create

Creates a new instance of the class with specified parameters.

constructor Create(const AppName: UnicodeString; const BasePath: UnicodeString; const InitHydraCore: Boolean)

Parameters:

  • AppName: Friendly name to the domain
  • BasePath: Path to the directory that contains the plugin.
  • InitHydraCore: Defines whether Hydra core assembly should be initialized.

constructor CreateWithDefaultDomain

Creates a new instance of the class with specified parameters.

constructor CreateWithDefaultDomain(const BasePath: UnicodeString; const InitHydraCore: Boolean)

Parameters:

  • BasePath:
  • InitHydraCore: Initialize hydra core

AppDomain

Reference to a Microsoft AppDomain interface.

property AppDomain: _AppDomain read write

AppendPrivatePath

Appends the specified directory name to the private path list.

procedure AppendPrivatePath(const Path: UnicodeString)

Parameters:

  • Path: The name of the directory to be appended to the private path.

CoreAssembly

Reference to a Hydra core assembly.

property CoreAssembly: _Assembly read write

FindAttribute (_Assembly, string): OleVariant  overload

Performs a search for the attribute with specified name in the specififed assembly.

function FindAttribute(Assembly: _Assembly; const AttributeName: string): OleVariant

Parameters:

  • Assembly: Reference to assembly where search will be performed.
  • AttributeName: The name of the attribute to find.

FindAttribute (_Type, string): OleVariant  overload

Performs a search for the attribute with specified name in the specified type.

function FindAttribute(lType: _Type; const AttributeName: string): OleVariant

Parameters:

  • lType: Reference to type where search will be performed.
  • AttributeName: The name of the attribute to find.

IsAssemblyInBasePath

Checks whether specified file is in the base path.

function IsAssemblyInBasePath(const FileName: string): Boolean

Parameters:

  • FileName: Path to the file.

LoadAssembly (PSafeArray): _Assembly  overload

Loads the assembly from the specified byte array.

function LoadAssembly(Assembly: PSafeArray): _Assembly

Parameters:

  • Assembly: An array of type byte that is a COFF-based image containing an emitted assembly.

LoadAssembly (UnicodeString): _Assembly  overload

Loads an assembly by its display name.

function LoadAssembly(AssemblyString: UnicodeString): _Assembly

Parameters:

  • AssemblyString: The display name of the assembly.

ModuleControllerAttribute

Reference to a core ModuleControllerAttribute attribute.

property ModuleControllerAttribute: _Type read write

NeedsManagedWrapperAttribute

Reference to a core NeedsManagedWrapperAttribute attribute.

property NeedsManagedWrapperAttribute: _Type read write

NonVisualPluginAttribute

Reference to a core NonVisualPluginAttribute attribute.

property NonVisualPluginAttribute: _Type read write

PluginAttribute

Reference to a core PluginAttribute attribute.

property PluginAttribute: _Type read write

PluginModuleAttribute

Reference to a core PluginModuleAttribute attribute.

property PluginModuleAttribute: _Type read write

VisualPluginAttribute

Reference to a core VisualPluginAttribute attribute.

property VisualPluginAttribute: _Type read write

 

AppDomain

Reference to a Microsoft AppDomain interface.

property AppDomain: _AppDomain read write

CoreAssembly

Reference to a Hydra core assembly.

property CoreAssembly: _Assembly read write

ModuleControllerAttribute

Reference to a core ModuleControllerAttribute attribute.

property ModuleControllerAttribute: _Type read write

NeedsManagedWrapperAttribute

Reference to a core NeedsManagedWrapperAttribute attribute.

property NeedsManagedWrapperAttribute: _Type read write

NonVisualPluginAttribute

Reference to a core NonVisualPluginAttribute attribute.

property NonVisualPluginAttribute: _Type read write

PluginAttribute

Reference to a core PluginAttribute attribute.

property PluginAttribute: _Type read write

PluginModuleAttribute

Reference to a core PluginModuleAttribute attribute.

property PluginModuleAttribute: _Type read write

VisualPluginAttribute

Reference to a core VisualPluginAttribute attribute.

property VisualPluginAttribute: _Type read write

 

constructor Create

Creates a new instance of the class with specified parameters.

constructor Create(const AppName: UnicodeString; const BasePath: UnicodeString; const InitHydraCore: Boolean)

Parameters:

  • AppName: Friendly name to the domain
  • BasePath: Path to the directory that contains the plugin.
  • InitHydraCore: Defines whether Hydra core assembly should be initialized.

constructor CreateWithDefaultDomain

Creates a new instance of the class with specified parameters.

constructor CreateWithDefaultDomain(const BasePath: UnicodeString; const InitHydraCore: Boolean)

Parameters:

  • BasePath:
  • InitHydraCore: Initialize hydra core

AppendPrivatePath

Appends the specified directory name to the private path list.

procedure AppendPrivatePath(const Path: UnicodeString)

Parameters:

  • Path: The name of the directory to be appended to the private path.

FindAttribute (_Assembly, string): OleVariant  overload

Performs a search for the attribute with specified name in the specififed assembly.

function FindAttribute(Assembly: _Assembly; const AttributeName: string): OleVariant

Parameters:

  • Assembly: Reference to assembly where search will be performed.
  • AttributeName: The name of the attribute to find.

FindAttribute (_Type, string): OleVariant  overload

Performs a search for the attribute with specified name in the specified type.

function FindAttribute(lType: _Type; const AttributeName: string): OleVariant

Parameters:

  • lType: Reference to type where search will be performed.
  • AttributeName: The name of the attribute to find.

IsAssemblyInBasePath

Checks whether specified file is in the base path.

function IsAssemblyInBasePath(const FileName: string): Boolean

Parameters:

  • FileName: Path to the file.

LoadAssembly (PSafeArray): _Assembly  overload

Loads the assembly from the specified byte array.

function LoadAssembly(Assembly: PSafeArray): _Assembly

Parameters:

  • Assembly: An array of type byte that is a COFF-based image containing an emitted assembly.

LoadAssembly (UnicodeString): _Assembly  overload

Loads an assembly by its display name.

function LoadAssembly(AssemblyString: UnicodeString): _Assembly

Parameters:

  • AssemblyString: The display name of the assembly.