Browse Source

Merge pull request #4746 from gdlcf88/fix-hangfire-doc

Remove UseHangfireServer in the Hangfire background job doc
pull/4750/head
liangshiwei 6 years ago
committed by GitHub
parent
commit
6882fbd414
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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 2. If you want to use hangfire's dashboard, you can add `UseHangfireDashboard` call in the `OnApplicationInitialization` method in `Module` class
If you want to use hangfire's dashboard, you can add it, too: by `UseHangfireDashboard`
````csharp ````csharp
public override void OnApplicationInitialization(ApplicationInitializationContext context) 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 // ... others
app.UseHangfireServer();
app.UseHangfireDashboard(); app.UseHangfireDashboard();
} }

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

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

Loading…
Cancel
Save