Browse Source

Fix #4745: Remove the use of UseHangfireServer in the Hangfire background job doc.

pull/4746/head
gdlcf88 6 years ago
parent
commit
9e468fd3f5
  1. 5
      docs/en/Background-Jobs-Hangfire.md
  2. 5
      docs/zh-Hans/Background-Jobs-Hangfire.md

5
docs/en/Background-Jobs-Hangfire.md

@ -66,9 +66,7 @@ After you have installed these NuGet packages, you need to configure your projec
}
````
2. We need to add `UseHangfireServer` call in the `OnApplicationInitialization` method in `Module` class
If you want to use hangfire's dashboard, you can add it, too: by `UseHangfireDashboard`
2. If you want to use hangfire's dashboard, you can add `UseHangfireServer` call in the `OnApplicationInitialization` method in `Module` class
````csharp
public override void OnApplicationInitialization(ApplicationInitializationContext context)
@ -77,7 +75,6 @@ If you want to use hangfire's dashboard, you can add it, too: by `UseHangfireDas
// ... others
app.UseHangfireServer();
app.UseHangfireDashboard();
}

5
docs/zh-Hans/Background-Jobs-Hangfire.md

@ -66,9 +66,7 @@ public class YourModule : AbpModule
}
````
1. 我们需要在 `Module` 类的 `OnApplicationInitialization` 方法添加 `UseHangfireServer` 方法调用.
如果你想要使用Hangfire的面板,你可以使用: `UseHangfireDashboard`
1. 如果你想要使用Hangfire的面板,你可以在 `Module` 类的 `OnApplicationInitialization` 方法添加: `UseHangfireDashboard`
````csharp
public override void OnApplicationInitialization(ApplicationInitializationContext context)
@ -77,7 +75,6 @@ public class YourModule : AbpModule
// ... others
app.UseHangfireServer();
app.UseHangfireDashboard();
}

Loading…
Cancel
Save