书栈网 · BookStack 本次搜索耗时 0.020 秒,为您找到 104 个相关结果.
  • Using cancellation tokens

    1536 2018-06-23 《Hangfire英文文档》
    Using cancellation tokens¶ Hangfire provides support for cancellation tokens for your jobs to let them know when a shutdown request was initiated, or job performance was aborted....
  • 处理异常

    4453 2018-06-08 《hangfire 中文文档》
    处理异常¶ 任何方法都可以抛出不同类型的异常。这些异常可能是需要应用程序重新部署来解决的编程错误,或者是不需要重新部署但可以解决的暂时性错误。 Hangfire可以处理所有内部的(属于Hangfire本身)和相关的外部方法(任务,过滤器等)的异常,因此不会导致整个应用程序被关闭。所有内部异常都被记录(所以不要忘记 启用日志 ),最糟糕的情况是导...
  • Sending Mail in Background with ASP.NET MVC

    1392 2018-06-23 《Hangfire英文文档》
    Sending Mail in Background with ASP.NET MVC¶ Table of Contents Installing Postal Further considerations Installing Hangfire Automatic retries Logging Fix-deploy-retry Pre...
  • Processing background jobs

    Processing background jobs¶ Hangfire Server part is responsible for background job processing. The Server does not depend on ASP.NET and can be started anywhere, from a console a...
  • 在ASP.NET MVC 中发送邮件

    4590 2018-06-23 《Hangfire中文文档》
    在ASP.NET MVC 中发送邮件¶ 们从一个简单的例子开始:您正在使用ASP.NET MVC构建您自己的博客,并希望收到每个相关文章评论的电子邮件通知。 我们将使用简单好用的 Postal 库发送邮件。 Tip 我准备了一个只有评论列表的简单应用程序, 您可以 下载源码 开始教程。 您已经有一个控制器操作来创建新的评论,并希望添加通知功能。...
  • 使ASP.NET应用程序始终运行

    6797 2018-06-23 《Hangfire中文文档》
    内部应用程序¶ 对于在服务器上运行的Web应用程序(物理或虚拟),您需要使用版本高于2008的 Windows Server 附带的IIS≥7.5的自启功能。完整设置需要完成以下步骤: - 允许 Windows Process Activation (WAS) 和 World Wide Web Publishing (W3SVC) 服务自启(默认自启)...
  • 处理异常

    3742 2018-06-23 《Hangfire中文文档》
    处理异常¶ 任何方法都可以抛出不同类型的异常。这些异常可能是需要应用程序重新部署来解决的编程错误,或者是不需要重新部署但可以解决的暂时性错误。 Hangfire可以处理所有内部的(属于Hangfire本身)和相关的外部方法(任务,过滤器等)的异常,因此不会导致整个应用程序被关闭。所有内部异常都被记录(所以不要忘记 启用日志 ),最糟糕的情况是导致后台任...
  • Calling methods in background

    Calling methods in background¶ Fire-and-forget method invocation has never been simpler. As you already know from the Quick start guide, you only need to pass a lambda expressio...
  • Highlighter Tutorial

    Highlighter Tutorial¶ |Simple sample|https://github.com/odinserj/Hangfire.Highlighter |Full sample|http://highlighter.hangfire.io , sources Table of Contents Overview Settin...
  • 使用取消令牌

    3523 2018-06-23 《Hangfire中文文档》
    使用取消令牌¶ Hangfire在发起一个取消任务请求或者终止任务时,为任务提供了取消令牌的支持,在前一种情况下,将自动放回队列的对头,允许Hangfire重新处理任务。 取消令牌通过 IJobCancellationToken 的接口暴露出来。当发起取消任务请求时,它通过 ThrowIfCancellationRequested 方法来抛出 Oper...