开发者

How to get WCF RIA SupportsCancelation == true

Using WCF RIA Service, how can a load operation be cancelled? The S开发者_运维技巧upportsCancelation is readonly and always seems to return false.

Thanks


According to MSDN

true if the operation supports cancellation; otherwise, false. This implementation always returns false.

So it always returns false by default unless you have a class that overrides this behavior.

have you tried LoadOperation.Cancel() anyways ?

MyContext ctx = new MyContext();

var loadOp = ctx.Load<Entity>(ctx.GetEntities());
loadOp.Cancel();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜