取消LINQPad程序运行 [英] Cancel LINQPad program run

查看:123
本文介绍了取消LINQPad程序运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能取消我在 LINQPad 运行长时间运行的程序? 如果是这样,怎么样?

Is it possible to cancel long running programs that I run in LINQPad? If so, how?

编辑:

LINQPad可以显示非常大的对象时,不响应很长一段时间。然后,你要么必须等待或杀死LINQPad。

LINQPad can become unresponsive for a long time when displaying very big objects. Then you either have to wait or kill LINQPad.

运行运行很长一段时间程序时不会发生这种情况一般。

This does not happen in general when running programs that run for a long time.

推荐答案

在我的经验,主要有两个阶段,其中LINQPad可能在执行查询时所花显著时间:

In my experience there are two main phases where LINQPad might spend significant time when executing your query:

  1. 在执行时对数据环境中的查询和收集数据
  2. 在检索和将该数据转换成HTML格式的显示

在LINQPad正在执行查询(上述第1阶段),你可以取消与查询<大骨节病>移 - <大骨节病> F5

While LINQPad is executing your query (phase 1 above), you can cancel the query with Shift-F5.

在LINQPad正在建设的HTML显示,我遗憾的是还没有找到一种方法来取消查询。我通常做的是的或者的杀LINQPad(通过任务管理器或其他方式)完全(因为它会自动保存查询,你通常不会丢失任何工作)的的只是让查询自生自灭。然后,我将我的转储()调用转储(0)来确保我更快地获得结果下一次。

While LINQPad is building the HTML to display, I unfortunately haven't found a way to cancel the query. What I normally do is either kill LINQPad (through task manager or other means) completely (since it saves queries automatically, you normally don't lose any work) or just let the query run its course. Then I convert my Dump() calls to Dump(0) to ensure I get results more quickly next time.

这肯定会是很好,如果LINQPad将扩展到更深的转储之前的水平做一个广度优先的方法。 pressing <大骨节病>移 - <大骨节病> F5 可在这种情况下,简单地停止扩大在任何级别也已经达到。如果你同意,它可能是一个很好的增强对 LINQPad的UserVoice的站点。

It certainly would be nice if LINQPad would do a breadth-first approach before expanding to deeper dump levels. Pressing Shift-F5 could in that case simply stop expanding at whatever level it had reached. If you agree, it might be a good enhancement to request on LINQPad's UserVoice site.

这篇关于取消LINQPad程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆