Class RemoteLoader

The remote loader loads assumblies into a remote System.AppDomain

Inheritance
System.Object
System.MarshalByRefObject
RemoteLoader
Inherited Members
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Web.Console.Common
Assembly: Mediachase.WebConsoleLib.dll
Version: 10.8.0
Syntax
public class RemoteLoader : MarshalByRefObject

Constructors

RemoteLoader()

Creates a remote assembly loader

Declaration
public RemoteLoader()

Fields

assemblyList

Declaration
protected ArrayList assemblyList
Field Value
Type Description
System.Collections.ArrayList

typeList

Declaration
protected ArrayList typeList
Field Value
Type Description
System.Collections.ArrayList

Methods

CallStaticMethod(String, String, Object[])

Returns the result of a static method call

Declaration
public object CallStaticMethod(string typeName, string methodName, object[] methodParams)
Parameters
Type Name Description
System.String typeName

The type to call the static method on

System.String methodName

The name of the method to call

System.Object[] methodParams

The parameters to pass to the method

Returns
Type Description
System.Object

The return value of the method

CreateInstance(String, BindingFlags, Object[])

Returns a proxy to an instance of the specified plugin type

Declaration
public MarshalByRefObject CreateInstance(string typeName, BindingFlags bindingFlags, object[] constructorParams)
Parameters
Type Name Description
System.String typeName

The name of the type to create an instance of

System.Reflection.BindingFlags bindingFlags

The binding flags for the constructor

System.Object[] constructorParams

The parameters to pass to the constructor

Returns
Type Description
System.MarshalByRefObject

The constructed object

GetAssemblies()

The assemblies loaded by the plugin manager

Declaration
public string[] GetAssemblies()
Returns
Type Description
System.String[]

GetStaticPropertyValue(String, String)

Returns the value of a static property

Declaration
public object GetStaticPropertyValue(string typeName, string propertyName)
Parameters
Type Name Description
System.String typeName

The type to retrieve the static property value from

System.String propertyName

The name of the property to retrieve

Returns
Type Description
System.Object

The value of the static property

GetSubclasses(String)

Retrieves the type objects for all subclasses of the given type within the loaded plugins.

Declaration
public string[] GetSubclasses(string baseClass)
Parameters
Type Name Description
System.String baseClass

The base class

Returns
Type Description
System.String[]

All subclases

GetTypes()

The types loaded by the plugin manager

Declaration
public string[] GetTypes()
Returns
Type Description
System.String[]

LoadAssembly(String)

Loads the assembly into the remote domain

Declaration
public void LoadAssembly(string fullname)
Parameters
Type Name Description
System.String fullname

The full filename of the assembly to load

ManagesType(String)

Determines if this loader manages the specified type

Declaration
public bool ManagesType(string typeName)
Parameters
Type Name Description
System.String typeName

The type to check if this PluginManager handles

Returns
Type Description
System.Boolean

True if this PluginManager handles the type