private void SvnWcNotifyFuncWrapper(IntPtr baton, IntPtr path, int action, int kind, IntPtr mime_type, int content_state, int prop_state, int revision) { SvnWcNotify.Func func = mFunc as SvnWcNotify.Func; try { Debug.WriteLine(String.Format("[Callback:{0}]SvnWcNotifyFunc({1:X},{2},{3},{4},{5},{6},{7},{8})", func.Method.Name, baton.ToInt32(), new SvnPath(path), (SvnWcNotify.Action)action, (Svn.NodeKind)kind, new AprString(mime_type), (SvnWcNotify.State)content_state, (SvnWcNotify.State)prop_state, revision)); func(baton, new SvnPath(path), (SvnWcNotify.Action)action, (Svn.NodeKind)kind, new AprString(mime_type), (SvnWcNotify.State)content_state, (SvnWcNotify.State)prop_state, revision); } catch (Exception) { return; } }
// svn_wc_notify_func_t Wrapper public SvnDelegate(SvnWcNotify.Func func) { mFunc = func; mWrapperFunc = new Svn.svn_wc_notify_func_t(SvnWcNotifyFuncWrapper); }