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();
精彩评论