开发者

SharpSVN: What does "Is Last Invocation Canceled" mean?

开发者 https://www.devze.com 2023-01-17 12:32 出处:网络
I\'m using SharpSVN 1.6 with .开发者_开发百科Net 3.5. I saw the property IsLastInvocationCanceled in a few SvnArgs (UpdateArgs, CommitArgs etc.), and I couldn\'t find a documentation on it.

I'm using SharpSVN 1.6 with .开发者_开发百科Net 3.5.

I saw the property IsLastInvocationCanceled in a few SvnArgs (UpdateArgs, CommitArgs etc.), and I couldn't find a documentation on it.

Can someone please tell me what does it mean?

Thanks!


If you have ThrowOnWarning and/or ThrowOnError disabled, on your next call IsLastInvocationCanceled will be true if a warning or error (respectively) occurred on your last invocation.


After checking, the intended behavior is that IsLastInvocationCanceled is only true when the Cancel property on the EventArgs is set (to cancel the current operation), like so:

SvnUpdateArgs ua = new SvnUpdateArgs();
client.List(url, ua, delegate(object sender, SvnUpdateEventArgs e)
{
    e.Cancel = true;
});

Assert.That(ua.IsLastInvocationCanceled);
0

精彩评论

暂无评论...
验证码 换一张
取 消