void OnNotify(object sender, SvnNotifyEventArgs e) { // Do not catalog MergeBegin if (e.Action == SvnNotifyAction.MergeBegin) { return; } e.Detach(); _mergeActions.Add(e); }
static void _svn_wc_notify_func2(IntPtr baton, IntPtr notifyPtr, IntPtr pool) { var client = AprBaton <SvnClient> .Get(baton); var aprPool = new AprPool(pool, false); var notify = svn_wc_notify_t.__CreateInstance(notifyPtr); var ea = new SvnNotifyEventArgs(notify, client.CurrentCommandArgs.CommandType, aprPool); try { client.HandleClientNotify(ea); } finally { ea.Detach(false); aprPool.Dispose(); } }
void OnNotify(object sender, SvnNotifyEventArgs e) { // Do not catalog MergeBegin if (e.Action == SvnNotifyAction.MergeBegin) return; e.Detach(); _mergeActions.Add(e); }
/// <summary> /// Callback method to be used as ClientContext.NotifyCallback /// </summary> /// <param name="notification">An object containing information about the notification</param> public virtual void NotifyCallback(object sender, SvnNotifyEventArgs e) { e.Detach(); _notifications.Add(e); }