static void n_Register_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Facebook.Stetho.Server.Http.HandlerRegistry __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.HandlerRegistry> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Facebook.Stetho.Server.Http.IPathMatcher p0 = (global::Com.Facebook.Stetho.Server.Http.IPathMatcher)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IPathMatcher> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Facebook.Stetho.Server.Http.IHttpHandler p1 = (global::Com.Facebook.Stetho.Server.Http.IHttpHandler)global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IHttpHandler> (native_p1, JniHandleOwnership.DoNotTransfer); __this.Register(p0, p1); }
static bool n_HandleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2) { global::Com.Facebook.Stetho.Server.Http.IHttpHandler __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.IHttpHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Facebook.Stetho.Server.SocketLike p0 = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.SocketLike> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Facebook.Stetho.Server.Http.LightHttpRequest p1 = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpRequest> (native_p1, JniHandleOwnership.DoNotTransfer); global::Com.Facebook.Stetho.Server.Http.LightHttpResponse p2 = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpResponse> (native_p2, JniHandleOwnership.DoNotTransfer); bool __ret = __this.HandleRequest(p0, p1, p2); return(__ret); }
public virtual unsafe bool Unregister(global::Com.Facebook.Stetho.Server.Http.IPathMatcher p0, global::Com.Facebook.Stetho.Server.Http.IHttpHandler p1) { if (id_unregister_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_ == IntPtr.Zero) { id_unregister_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_ = JNIEnv.GetMethodID(class_ref, "unregister", "(Lcom/facebook/stetho/server/http/PathMatcher;Lcom/facebook/stetho/server/http/HttpHandler;)Z"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_unregister_Lcom_facebook_stetho_server_http_PathMatcher_Lcom_facebook_stetho_server_http_HttpHandler_, __args); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "unregister", "(Lcom/facebook/stetho/server/http/PathMatcher;Lcom/facebook/stetho/server/http/HttpHandler;)Z"), __args); } return(__ret); } finally { } }