using System;
using System
using System
using System
using System
namespace RemoteAccess
{
/// <summary>
/// Interface that can be run over the remote AppDomain boundary
/// </summary>
public interface IRemoteInterface
{
object Invoke(string lcMethod
}
/// <summary>
/// Factory class to create objects exposing IRemoteInterface
/// </summary>
public class RemoteLoaderFactory : MarshalByRefObject
{
private const BindingFlags bfi = BindingFlags
public RemoteLoaderFactory() {}
public IRemoteInterface Create( string assemblyFile
{
return (IRemoteInterface) Activator
assemblyFile
null
}
}
}
[
From:http://tw.wingwit.com/Article/program/net/201311/14547.html