Beispiel #1
0
 static void ConnectAsync_cb(IntPtr inst, IntPtr connection, IntPtr proxy_address, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
 {
     try {
         IProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyImplementor;
         GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data);
         __obj.ConnectAsync(GLib.Object.GetObject(connection) as GLib.IOStream, GLib.Object.GetObject(proxy_address) as GLib.ProxyAddress, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Beispiel #2
0
 public ProxyAdapter(IProxyImplementor implementor)
 {
     if (implementor == null)
     {
         throw new ArgumentNullException("implementor");
     }
     else if (!(implementor is GLib.Object))
     {
         throw new ArgumentException("implementor must be a subclass of GLib.Object");
     }
     this.implementor = implementor as GLib.Object;
 }
Beispiel #3
0
 static bool SupportsHostname_cb(IntPtr inst)
 {
     try {
         IProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyImplementor;
         bool __result;
         __result = __obj.SupportsHostname();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Beispiel #4
0
        static IntPtr ConnectFinish_cb(IntPtr inst, IntPtr result, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                IProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyImplementor;
                GLib.IOStream     __result;
                __result = __obj.ConnectFinish(GLib.AsyncResultAdapter.GetObject(result, false));
                return(__result == null ? IntPtr.Zero : __result.Handle);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }
Beispiel #5
0
        static IntPtr Connect_cb(IntPtr inst, IntPtr connection, IntPtr proxy_address, IntPtr cancellable, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                IProxyImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyImplementor;
                GLib.IOStream     __result;
                __result = __obj.Connect(GLib.Object.GetObject(connection) as GLib.IOStream, GLib.Object.GetObject(proxy_address) as GLib.ProxyAddress, GLib.Object.GetObject(cancellable) as GLib.Cancellable);
                return(__result == null ? IntPtr.Zero : __result.Handle);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }
Beispiel #6
0
		public ProxyAdapter (IProxyImplementor implementor)
		{
			if (implementor == null)
				throw new ArgumentNullException ("implementor");
			else if (!(implementor is GLib.Object))
				throw new ArgumentException ("implementor must be a subclass of GLib.Object");
			this.implementor = implementor as GLib.Object;
		}