【问题标题】:Fetch Recurring Job Details from Hangfire Scheduler which is using Mongo DB从使用 Mongo DB 的 Hangfire Scheduler 获取重复作业详细信息
【发布时间】:2019-11-05 02:18:10
【问题描述】:

我必须显示在 Mongo DB 中创建的 Hangfire 后台作业详细信息,是否有任何内置函数可以查询作业详细信息? 我正在使用 .Net 核心 Hangfire Nuget

【问题讨论】:

  • 我认为最好先阅读 Nuget 包文档。如果有这样的方法你应该可以在那里找到它。

标签: c# mongodb .net-core hangfire


【解决方案1】:

如果我没看错,您应该在您设置的databaseName_prefix 中找到您的相关收藏。集合命名为:_prefix + ".notifications"_prefix + ".jobGraph"_prefix + ".schema"_prefix + ".server"

来源:https://github.com/sergeyzwezdin/Hangfire.Mongo/blob/master/src/Hangfire.Mongo/Database/HangfireDbContext.cs

如果你想通过一些 API 阅读它,我会在 MongoMonitoringAPI 命名空间中搜索

https://github.com/sergeyzwezdin/Hangfire.Mongo/blob/master/src/Hangfire.Mongo/MongoMonitoringApi.cs

【讨论】:

    猜你喜欢
    • 2017-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多