C# Class hessiancsharp.client.CHessianProxyStandardImpl

Proxy that works with .NET - Remote proxy framework
Inheritance: System.Runtime.Remoting.Proxies.RealProxy, IRemotingTypeInfo, IHessianProxyStandard
ファイルを表示 Open project: timfel/csharp-hessian

Public Methods

Method Description
CHessianProxyStandardImpl ( Type proxyType, CHessianProxyFactory hessianProxyFactory, Uri uri ) : System

Constructor

CHessianProxyStandardImpl ( Type proxyType, CHessianProxyFactory hessianProxyFactory, Uri uri, string username, string password, WebProxy webproxy ) : System
CanCastTo ( Type fromType, object obj ) : bool

Checks whether the proxy representing the specified object type can be cast to the type represented by the IRemotingTypeInfo interface

Invoke ( IMessage msg ) : IMessage

This reflective method for invoking methods. Overriden from RealProxy. Handles the object invocation. This method wrapps an instance call to the hessian requests, sends it to the hessian service and translates the reply of this call to the C# - data type System.Runtime.Remoting.Proxies.RealProxy

Private Methods

Method Description
GetMethodInfoForMethodBase ( IMethodCallMessage methodMessage ) : MethodInfo

Gets method info instance, according to the given method base

IsMethodNameUnique ( string name ) : bool

Method Details

CHessianProxyStandardImpl() public method

Constructor
public CHessianProxyStandardImpl ( Type proxyType, CHessianProxyFactory hessianProxyFactory, Uri uri ) : System
proxyType System.Type Interface type that has to be proxied
hessianProxyFactory CHessianProxyFactory HessianProxyFactory - Instance
uri System.Uri Server-Proxy uri
return System

CHessianProxyStandardImpl() public method

public CHessianProxyStandardImpl ( Type proxyType, CHessianProxyFactory hessianProxyFactory, Uri uri, string username, string password, WebProxy webproxy ) : System
proxyType System.Type
hessianProxyFactory CHessianProxyFactory
uri System.Uri
username string
password string
webproxy System.Net.WebProxy
return System

CanCastTo() public method

Checks whether the proxy representing the specified object type can be cast to the type represented by the IRemotingTypeInfo interface
public CanCastTo ( Type fromType, object obj ) : bool
fromType System.Type Cast - Type
obj object Proxy object
return bool

Invoke() public method

This reflective method for invoking methods. Overriden from RealProxy. Handles the object invocation. This method wrapps an instance call to the hessian requests, sends it to the hessian service and translates the reply of this call to the C# - data type System.Runtime.Remoting.Proxies.RealProxy
public Invoke ( IMessage msg ) : IMessage
msg IMessage
return IMessage