public void AppRegistered( string appId, ref AuthGranted authGranted, Action oDisconnectNotifierCb, Action <FfiResult, IntPtr, GCHandle> oCb) { var authGrantedNative = authGranted.ToNative(); var userData = BindingUtils.ToHandlePtr((oDisconnectNotifierCb, oCb)); AppRegisteredNative(appId, ref authGrantedNative, userData, OnAppDisconnectCb, OnAppCreateCb); authGrantedNative.Free(); }