24 lines
597 B
C#
24 lines
597 B
C#
using System;
|
|
using System.Runtime.Remoting.Messaging;
|
|
using System.Runtime.Remoting.Proxies;
|
|
|
|
namespace com.itac.mes.commonsmt
|
|
{
|
|
class FailoverProxy : RealProxy
|
|
{
|
|
private FailoverInvocationHandler failoverInvocationHandler;
|
|
|
|
public FailoverProxy(Type type, FailoverInvocationHandler failoverInvocationHandler)
|
|
: base(type)
|
|
{
|
|
this.failoverInvocationHandler = failoverInvocationHandler;
|
|
}
|
|
|
|
public override IMessage Invoke(IMessage msg)
|
|
{
|
|
return failoverInvocationHandler.Invoke(msg);
|
|
}
|
|
}
|
|
|
|
}
|