Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector Class Reference

Implements a interface inspector for determining whether a given interface is implemented in an assembly. More...

Inheritance diagram for Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector:

Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.IInterfaceInspector

List of all members.

Public Member Functions

bool IsInterfaceImplemented (string filePath, string interfaceName)
 Given a path to an assembly and a fully-qualified interface name, determine whether the interface is implemented. NOTE: Only exported types are examined.
bool TryGetTypeNameByFileAndInterface (string filePath, string interfaceName, out string typeName)
 Given a path to an assembly and a fully-qualified interface name, determine whether the interface is implemented and return the fully qualified name of the type that implements the interface. NOTE: Only exported types are examined.
bool TryGetTypeByFileAndInterface (string filePath, string interfaceName, out Type type)
 Given a path to an assembly and a fully-qualified interface name, determine whether the interface is implemented and return the type that implements the interface. NOTE: Only exported types are examined.
bool TryGetTypeFromPathInterfaceAndType (string filePath, string interfaceName, string typeName, out Type agentType)
 Given a full path to an Agent assembly and the type which implements IAgent, try to load the Agent type.

Static Public Member Functions

static IInterfaceInspector Get (AppDomain domain, string inspectorInterfaceName)
 Load an instance of the interface inspector in the specified application domain.


Detailed Description

Implements a interface inspector for determining whether a given interface is implemented in an assembly.

Definition at line 21 of file InterfaceInspector.cs.


Member Function Documentation

static IInterfaceInspector Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector.Get ( AppDomain  domain,
string  inspectorInterfaceName 
) [static]

Load an instance of the interface inspector in the specified application domain.

Returns:
An instance of IInterfaceInspector

Definition at line 111 of file InterfaceInspector.cs.

bool Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector.IsInterfaceImplemented ( string  filePath,
string  interfaceName 
)

Given a path to an assembly and a fully-qualified interface name, determine whether the interface is implemented. NOTE: Only exported types are examined.

Parameters:
filePath The full path to the assembly
interfaceName The fully-qualified name of the interface
Returns:
True if the interface is implemented on an exported type, false if not.

Implements Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.IInterfaceInspector.

Definition at line 33 of file InterfaceInspector.cs.

bool Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector.TryGetTypeByFileAndInterface ( string  filePath,
string  interfaceName,
out Type  type 
)

Given a path to an assembly and a fully-qualified interface name, determine whether the interface is implemented and return the type that implements the interface. NOTE: Only exported types are examined.

Parameters:
filePath The full path to the assembly
interfaceName The fully-qualified name of the interface
type On success, the type that implements the interface.
Returns:
True if the interface is implemented on an exported type, false if not.

Implements Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.IInterfaceInspector.

Definition at line 88 of file InterfaceInspector.cs.

bool Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector.TryGetTypeFromPathInterfaceAndType ( string  filePath,
string  interfaceName,
string  typeName,
out Type  agentType 
)

Given a full path to an Agent assembly and the type which implements IAgent, try to load the Agent type.

Parameters:
filePath The full path to the Agent assembly
interfaceName 
typeName The full name of the type implementing IAgent
agentType On success, contains the Agent type
Returns:
True if the Agent type is loaded and IAgent interface is found, false if not.

Implements Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.IInterfaceInspector.

Definition at line 144 of file InterfaceInspector.cs.

bool Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.InterfaceInspector.TryGetTypeNameByFileAndInterface ( string  filePath,
string  interfaceName,
out string  typeName 
)

Given a path to an assembly and a fully-qualified interface name, determine whether the interface is implemented and return the fully qualified name of the type that implements the interface. NOTE: Only exported types are examined.

Parameters:
filePath The full path to the assembly
interfaceName The fully-qualified name of the interface
typeName On success, the fully qualified name of the type that implements the interface.
Returns:
True if the interface is implemented on an exported type, false if not.

Implements Mcs.Epm.MicrosoftProject.mpFx.Client.Shared.IInterfaceInspector.

Definition at line 59 of file InterfaceInspector.cs.


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

Generated on Sat Jan 24 13:32:12 2009 for mpFx by  doxygen 1.5.8