static void LookupAsync_cb(IntPtr inst, IntPtr uri, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data) { try { IProxyResolverImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyResolverImplementor; GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data); __obj.LookupAsync(GLib.Marshaller.Utf8PtrToString(uri), GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public ProxyResolverAdapter(IProxyResolverImplementor 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; }
static bool IsSupported_cb(IntPtr inst) { try { IProxyResolverImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyResolverImplementor; bool __result; __result = __obj.IsSupported; return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr LookupFinish_cb(IntPtr inst, IntPtr result, out IntPtr error) { error = IntPtr.Zero; try { IProxyResolverImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyResolverImplementor; string __result; __result = __obj.LookupFinish(GLib.AsyncResultAdapter.GetObject(result, false)); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr Lookup_cb(IntPtr inst, IntPtr uri, IntPtr cancellable, out IntPtr error) { error = IntPtr.Zero; try { IProxyResolverImplementor __obj = GLib.Object.GetObject(inst, false) as IProxyResolverImplementor; string __result; __result = __obj.Lookup(GLib.Marshaller.Utf8PtrToString(uri), GLib.Object.GetObject(cancellable) as GLib.Cancellable); return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public ProxyResolverAdapter (IProxyResolverImplementor 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; }