IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Engine.Extensibility.ExtensionNode Class Reference

The ExtensionNode class represents a single extension being installed on a particular extension point. It stores information needed to activate the extension object on a just-in-time basis. More...

Public Member Functions

 ExtensionNode (string assemblyPath, string typeName)
 Construct an ExtensionNode More...
 
object CreateExtensionObject (params object[] args)
 Gets a newly created extension object, created in the domain specified More...
 
void AddProperty (string name, string val)
 
IEnumerable< string > GetProperties (string name)
 
string GetProperty (string name)
 

Properties

string AssemblyPath [get]
 Gets the path to the assembly where the extension is defined. More...
 
string TypeName [get]
 Gets the full name of the Type of the assembly object. More...
 
object ExtensionObject [get]
 Gets an object of the specified extension type, loading the Assembly and creating the object as needed. Note that this property always returns the same object. Use CreateExtensionObject if a new one is needed each time or to specify arguments. More...
 
string Path [get, set]
 Gets and sets the unique string identifying the ExtensionPoint for which this Extension is intended. This identifier may be supplied by the attribute marking the extension or deduced by NUnit from the Type of the extension class. More...
 
string Description [get, set]
 An optional description of what the extension does. More...
 

Private Attributes

object _extensionObject
 
string _assemblyPath
 
string _typeName
 
Dictionary< string, List
< string > > 
_properties = new Dictionary<string, List<string>>()
 

Detailed Description

The ExtensionNode class represents a single extension being installed on a particular extension point. It stores information needed to activate the extension object on a just-in-time basis.

Constructor & Destructor Documentation

NUnit.Engine.Extensibility.ExtensionNode.ExtensionNode ( string  assemblyPath,
string  typeName 
)
inline

Construct an ExtensionNode

Parameters
assemblyPathThe path to the assembly where this extension is found.
typeNameThe full name of the Type of the extension object.

Member Function Documentation

object NUnit.Engine.Extensibility.ExtensionNode.CreateExtensionObject ( params object[]  args)
inline

Gets a newly created extension object, created in the domain specified

Referenced by NUnit.Engine.Drivers.NUnit2DriverFactory.GetDriver().

void NUnit.Engine.Extensibility.ExtensionNode.AddProperty ( string  name,
string  val 
)
inline
IEnumerable<string> NUnit.Engine.Extensibility.ExtensionNode.GetProperties ( string  name)
inline
string NUnit.Engine.Extensibility.ExtensionNode.GetProperty ( string  name)
inline

Member Data Documentation

object NUnit.Engine.Extensibility.ExtensionNode._extensionObject
private
string NUnit.Engine.Extensibility.ExtensionNode._assemblyPath
private
string NUnit.Engine.Extensibility.ExtensionNode._typeName
private
Dictionary<string, List<string> > NUnit.Engine.Extensibility.ExtensionNode._properties = new Dictionary<string, List<string>>()
private

Property Documentation

string NUnit.Engine.Extensibility.ExtensionNode.AssemblyPath
get

Gets the path to the assembly where the extension is defined.

string NUnit.Engine.Extensibility.ExtensionNode.TypeName
get

Gets the full name of the Type of the assembly object.

Referenced by NUnit.Engine.Services.Tests.ExtensionServiceTests.CanListExtensions().

object NUnit.Engine.Extensibility.ExtensionNode.ExtensionObject
get

Gets an object of the specified extension type, loading the Assembly and creating the object as needed. Note that this property always returns the same object. Use CreateExtensionObject if a new one is needed each time or to specify arguments.

Referenced by NUnit.Engine.Services.ProjectService.CanLoadFrom(), and NUnit.Engine.Services.ProjectService.LoadFrom().

string NUnit.Engine.Extensibility.ExtensionNode.Path
getset

Gets and sets the unique string identifying the ExtensionPoint for which this Extension is intended. This identifier may be supplied by the attribute marking the extension or deduced by NUnit from the Type of the extension class.

Referenced by NUnit.Engine.Extensibility.ExtensionPoint.Install().

string NUnit.Engine.Extensibility.ExtensionNode.Description
getset

An optional description of what the extension does.


The documentation for this class was generated from the following file: