Class SoRemoteLoader
The remote loader handles calling into a remote AppDomain.
Inherited Members
Namespace: SuperOffice.ApplicationDomain
Assembly: SoCore.dll
Syntax
public class SoRemoteLoader : MarshalByRefObject
Constructors
SoRemoteLoader()
Declaration
public SoRemoteLoader()
Fields
_assemblyList
Declaration
protected ArrayList _assemblyList
Field Value
Type | Description |
---|---|
ArrayList |
_typeList
Declaration
protected ArrayList _typeList
Field Value
Type | Description |
---|---|
ArrayList |
Methods
CallStaticMethod(String, String, Type[], Object[])
Returns the result of a static method call
Declaration
public object CallStaticMethod(string typeName, string methodName, Type[] parameterTypes, object[] methodParams)
Parameters
Type | Name | Description |
---|---|---|
String | typeName | The type to call the static method on |
String | methodName | |
Type[] | parameterTypes | Type array containing the type of the parameters. |
Object[] | methodParams | The parameters to pass to the method |
Returns
Type | Description |
---|---|
Object | The return value of the method |
CallStaticMethodByRefParams(String, String, Type[], ref Object[])
Returns the result of a static method call
Declaration
public object CallStaticMethodByRefParams(string typeName, string methodName, Type[] parameterTypes, ref object[] methodParams)
Parameters
Type | Name | Description |
---|---|---|
String | typeName | The type to call the static method on |
String | methodName | |
Type[] | parameterTypes | Type array containing the type of the parameters. |
Object[] | methodParams | The parameters to pass to the method |
Returns
Type | Description |
---|---|
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 |
---|---|---|
String | typeName | The name of the type to create an instance of |
BindingFlags | bindingFlags | The binding flags for the constructor |
Object[] | constructorParams | The parameters to pass to the constructor |
Returns
Type | Description |
---|---|
MarshalByRefObject | The constructed object |
InitializeLifetimeService()
Declaration
public override object InitializeLifetimeService()
Returns
Type | Description |
---|---|
Object |
Overrides
LoadAssembly(String)
Loads the assembly into the remote domain
Declaration
public void LoadAssembly(string fullname)
Parameters
Type | Name | Description |
---|---|---|
String | fullname | The full filename of the assembly to load |
Extension Methods
EnumUtil.MapEnums<From, To>(From)