Factory for Proxy - creation.
Ejemplo n.º 1
0
        public static void testBurlap()
        {
            CBurlapProxyFactory factory = new CBurlapProxyFactory();

            String url = "http://www.caucho.com/burlap/test/basic";

            try
            {

                Basic test = (Basic)factory.Create(typeof (Basic), url);
                Console.WriteLine(test.hello());

                Console.ReadLine();

            }
            catch(Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.ReadLine();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="hessianProxyFactory">BurlapProxyFactory - Instance</param>
 /// <param name="uri">Server-Proxy uri</param>
 public CBurlapMethodCaller(CBurlapProxyFactory burlapProxyFactory, Uri uri)
 {
     this.m_CBurlapProxyFactory = burlapProxyFactory;
     this.m_uriBurlapServiceUri = uri;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="proxyType">Interface type that has to be proxied</param>
 /// <param name="hessianProxyFactory">BurlapProxyFactory - Instance</param>
 /// <param name="uri">Server-Proxy uri</param>
 public CBurlapProxyStandardImpl(Type proxyType, CBurlapProxyFactory burlapProxyFactory, Uri uri)
     : base(typeof(IBurlapProxyStandard))
 {
     this.m_proxyType = proxyType;
     this.m_methodCaller = new CBurlapMethodCaller(burlapProxyFactory, uri);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="burlapProxyFactory">CBurlapProxyFactory - Instance</param>
 /// <param name="uri">Server-Proxy uri</param>
 internal CBurlapProxy(CBurlapProxyFactory burlapProxyFactory, Uri uri)
 {
     this.m_methodCaller = new CBurlapMethodCaller(burlapProxyFactory, uri);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="hessianProxyFactory">BurlapProxyFactory - Instance</param>
 /// <param name="uri">Server-Proxy uri</param>
 public CBurlapMethodCaller(CBurlapProxyFactory burlapProxyFactory, Uri uri)
 {
     this.m_CBurlapProxyFactory = burlapProxyFactory;
     this.m_uriBurlapServiceUri = uri;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="proxyType">Interface type that has to be proxied</param>
 /// <param name="hessianProxyFactory">BurlapProxyFactory - Instance</param>
 /// <param name="uri">Server-Proxy uri</param>
 public CBurlapProxyStandardImpl(Type proxyType, CBurlapProxyFactory burlapProxyFactory, Uri uri)
     : base(typeof(IBurlapProxyStandard))
 {
     this.m_proxyType    = proxyType;
     this.m_methodCaller = new CBurlapMethodCaller(burlapProxyFactory, uri);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="burlapProxyFactory">CBurlapProxyFactory - Instance</param>
 /// <param name="uri">Server-Proxy uri</param>
 internal CBurlapProxy(CBurlapProxyFactory burlapProxyFactory, Uri uri)
 {
     this.m_methodCaller = new CBurlapMethodCaller(burlapProxyFactory,uri);
 }