initialize
This commit is contained in:
23
interface/commonsmt/dotnetplugin/Plugin/FailoverProxy.cs
Normal file
23
interface/commonsmt/dotnetplugin/Plugin/FailoverProxy.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user